W3C home > Mailing lists > Public > www-style@w3.org > June 2011

Re: CSS Hierarchies / Selector Nesting Proposal

From: Øyvind Stenhaug <oyvinds@opera.com>
Date: Fri, 03 Jun 2011 13:46:31 +0200
To: www-style@w3.org
Message-ID: <op.vwh0btytbunlto@oyvinds-desktop>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:41 GMT