Skip to content

Instantly share code, notes, and snippets.

@paulrouget
Created March 9, 2012 11:22
Show Gist options
  • Save paulrouget/2006132 to your computer and use it in GitHub Desktop.
Save paulrouget/2006132 to your computer and use it in GitHub Desktop.
Question
I have a CSS question, please don't look at the spec,
I want to understand how Web Developers understand some CSS terms:
#foo {
color: red;
opacity: 0.5;
}
** Do you know what is a Declaration here? **
See answer there: https://gist.github.com/2006202
Please comment here to say if you knew it or not, but don't give the answer.
It's important to share your answer not matter if you knew to correct answer or not.
This will have an impact of how we build a menu in the Firefox DevTools.
Thanks!
@KrofDrakula
Copy link

Yes.

@fvsch
Copy link

fvsch commented Mar 9, 2012

Yes, I understand perfectly what part(s) of your example is/are (a) declaration(s). (Trying not to spoil anyone. :))
(Context: I’m a CSS guy, I read CSS 2/3 specs, I teach/taught CSS, and I’m a strong believer in using the right words for concepts. My answer is not representative of most web devs and web designers.)

@neoncrumpet
Copy link

Ya.

@Pimm
Copy link

Pimm commented Mar 9, 2012

Got it right. But to be honest: I knew the term for everything else, so I was able to rule everything else out.

@brianking
Copy link

No! I write CSS most days and I thought #foo was the declaration.

@ayosec
Copy link

ayosec commented Mar 9, 2012

Yes.

@ludofleury
Copy link

Yep, yet I didn't make the difference between block declaration and declaration.

@Boldewyn
Copy link

Boldewyn commented Mar 9, 2012

Yes, knew it.

@pascalduez
Copy link

Yepp.

@cronco
Copy link

cronco commented Mar 9, 2012

same as @brianking.

@chibani
Copy link

chibani commented Mar 9, 2012

yes, i knew it :)

@gilloud
Copy link

gilloud commented Mar 9, 2012

yes

@nono
Copy link

nono commented Mar 9, 2012

Yes, I knew it.

@jeremiels
Copy link

nope... :(

@lazybean
Copy link

lazybean commented Mar 9, 2012

no. I'm not a css guy

@mathroc
Copy link

mathroc commented Mar 9, 2012

I didn't

@winminsoe
Copy link

Sadly No ! i thought #foo

@teoli2003
Copy link

I knew it but as I wrote https://developer.mozilla.org/en/CSS/Syntax this week, I had a big advantage ;-)
Strictly speaking there is 3 declaration there: the two obvious and one empty one after the second ;.

@peterkroon
Copy link

Yes.

@anilkk
Copy link

anilkk commented Mar 9, 2012

YES

@ghinda
Copy link

ghinda commented Mar 9, 2012

Yes.

@dharFr
Copy link

dharFr commented Mar 9, 2012

I was wrong too. As @brianking I tought about #foo

@gmoulin
Copy link

gmoulin commented Mar 9, 2012

Yes

@tbassetto
Copy link

I didn't know the exact part.

@samtsai
Copy link

samtsai commented Mar 9, 2012

Nope, at least not yet.

@tooshel
Copy link

tooshel commented Mar 9, 2012

Never really thought about the terms (declaration, property/value) when it comes to css. Whenever I see and work with css I get upset that it's not more "organized" and wonder how inefficient it is that something that is 20 lines could be made into 4 lines if the person writing the css understood css better.

@MoOx
Copy link

MoOx commented Mar 9, 2012

I knew

@stinoga
Copy link

stinoga commented Mar 9, 2012

Got it wrong :( I thought red was the declaration.

@louisremi
Copy link

Same as @brianking. I thought "there's gotta be a trap here" and picked the whole declaration block as a declaration.

@JeremiePat
Copy link

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment