News for hackers. Stuff that matters.
Re:2014 CSS Report: Examining how CSS is being used in the wild by freshyill on Thursday January 08, 2015 @05:00PM (#8859304)
A few things that stuck out:

* `content` is in the top 5 properties?

* Glad to see nobody else uses two colons on pseudo selectors.

* I can't believe how rare rgb color usage is! 0.4%? hsl I can believe.

* I'd be interested to see how many sites use `!important` (the correct number in a style sheet is zero).

Re:2014 CSS Report: Examining how CSS is being used in the wild by talmand on Thursday January 08, 2015 @05:14PM (#8859360)
The reason I usually use hex over rgb is because it's easier to snag the hex color from the Photoshop layout given to me. That, and if I'm not using alpha then I suppose I don't really care that much.

I never liked the double colons for pseudo selectors either. I kind of understand the idea of using two colons for the pseudo elements and single colon for pseudo classes to differentiate the two. But again, I can't seem to care that much. I can tell what they are by their names.

The correct number for !important should be zero but it's whatever number of times you have to use it because someone inlined styles into the HTML and you don't have access to remove it.

Re:2014 CSS Report: Examining how CSS is being used in the wild by AlexMcP on Thursday January 08, 2015 @06:06PM (#8859649)

  select count(*) from property 
  where value similar to '%!important%'

  => 177119
Re:2014 CSS Report: Examining how CSS is being used in the wild by madeofpalk on Thursday January 08, 2015 @05:22PM (#8859424)
> `content` is in the top 5 properties?

Icon fonts.

Re:2014 CSS Report: Examining how CSS is being used in the wild by AlexMcP on Thursday January 08, 2015 @05:58PM (#8859605)
That's what I saw when I spot checked it. Explained both pseudo selector and content prevalence.