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

Re: [css4-selectors]

From: Øyvind Stenhaug <oyvinds@opera.com>
Date: Tue, 29 Nov 2011 11:58:15 +0100
To: www-style@w3.org
Message-ID: <op.v5pffdpzbunlto@oyvinds-desktop>
On Tue, 29 Nov 2011 11:42:50 +0100, Florian Rivoal <florianr@opera.com>  
wrote:

> <div><div>Foo</div></div>
>
> div! div {content: "Bar";}
>
> The selector should match the outer div, the replace its content
> with "Bar", after which it shouldn't match anymore, so we get
> <div>Foo</div> back, at which point it matches again...

Here we have this recurring issue of not clearly distinguishing between  
elements and boxes. Though CSS 2.1 does say this:

"Generated content does not alter the document tree. In particular, it is  
not fed back to the document language processor (e.g., for reparsing)."

http://www.w3.org/TR/CSS21/generate.html#content

-- 
Øyvind Stenhaug
Core Norway, Opera Software ASA
Received on Tuesday, 29 November 2011 10:58:54 GMT

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