Re: CSS Hierarchies / Selector Nesting Proposal

On Thu, 02 Jun 2011 04:12:21 +0200, Tab Atkins Jr. <jackalmage@gmail.com>  
wrote:

> foo {
>   prop: val;
>   prop: val;
>   & bar {
>     prop: val;
>   }
> }
>
> The advantage of Hierarchies is that you can keep related styles in the
> same place, rather than spread across your document, and you can hence
> more clearly see how various style rules relate to each other. This helps
> reduce cognitive load on the reader

I would imagine it increases it, since the reader would need to remember  
the context instead of having it explicitly given in the selector.

-- 
Øyvind Stenhaug
Core Norway, Opera Software ASA

Received on Friday, 3 June 2011 11:47:00 UTC