W3C home > Mailing lists > Public > www-style@w3.org > May 2010

Re: [css3-content] "content" property, replaced elements, and width

From: L. David Baron <dbaron@dbaron.org>
Date: Sun, 9 May 2010 09:51:02 -0700
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: "Robert O'Callahan" <robert@ocallahan.org>, "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-ID: <20100509165102.GA5696@pickering.dbaron.org>
On Saturday 2010-05-08 12:05 -0700, Andrew Fedoniouk wrote:
> David, do you remember any discussion of what should happen
> if you have style:
> 
> p { content: "test" }
> 
> on DOM like this:
> 
> <p>foo<span>bar</span></p>
> 
> ?

I presume it's rather like the real content of the p has
'display:none', except that you have the generated content instead.

> p:hover { content: "test" }
> case is also interesting.

I'd think it's interesting in a manner similar to p:hover { display:
none } or p:hover > * { display:none }.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Sunday, 9 May 2010 17:04:46 GMT

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