This question came up at my company recently. This is what I told them: 5.a.ii. Make your rules as specific as possible
This is an area where I don't agree with their recommendations in the general case. They are trading off css performance for increased html page size and a tighter coupling of the content and design. 5.a.iii. Remove redundant qualifiers Their recommendations are correct for css that is served to only one page template. For css that is served to many templates, it is often necessary and adds to the general robustness against style regressions. That said, you should analyze your stylesheets for overly specific selectors and should continue to avoid them in the future. 5.a.iv. Avoid using descendant selectors, especially those that specify redundant ancestors They recommend using child selectors instead of descendant selectors. This will be nice when we can drop support for IE6 which does not support the child selector. 5.a.v. Use class selectors instead of descendant selectors This is an area where I don't agree with their recommendations in the general case. They are trading off css performance for increased html page size and a tighter coupling of the content and design. Chris On Mon, Apr 12, 2010 at 11:59 AM, Leandro López (inkel) <[email protected]>wrote: > Hi everybody, > > I'm new to the list, so sorry if I post a repeated question here, > although I've searched the archives before. > > I was wondering what's the current status of CSS generated by Sass > regarding Google's Web Performance Best Practices. My main concern is > about Google's latest announcement of now including page speed for > Page Rank [1]. I'm not sure if I completely agree with this, but my > question is about the following rule: Use efficient CSS selectors [2]. > > Thanks for your time, bye, > > Leandro (inkel) > > [1] > http://www.stevesouders.com/blog/2010/04/09/google-adds-site-speed-to-search-ranking/ > [2] > http://code.google.com/speed/page-speed/docs/rendering.html#UseEfficientCSSSelectors > > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected] <haml%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/haml?hl=en.
