Skip to content

Instantly share code, notes, and snippets.

@paulrouget
Created March 9, 2012 11:22
Show Gist options
  • Select an option

  • Save paulrouget/2006132 to your computer and use it in GitHub Desktop.

Select an option

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!
@dharFr

dharFr commented Mar 9, 2012

Copy link
Copy Markdown

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

@gmoulin

gmoulin commented Mar 9, 2012

Copy link
Copy Markdown

Yes

@tbassetto

Copy link
Copy Markdown

I didn't know the exact part.

@samtsai

samtsai commented Mar 9, 2012

Copy link
Copy Markdown

Nope, at least not yet.

@tooshel

tooshel commented Mar 9, 2012

Copy link
Copy Markdown

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

MoOx commented Mar 9, 2012

Copy link
Copy Markdown

I knew

@stinoga

stinoga commented Mar 9, 2012

Copy link
Copy Markdown

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

@louisremi

Copy link
Copy Markdown

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

@JeremiePat

Copy link
Copy Markdown

Yes

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