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

Re: collapsible property

From: Patrick Garies <pgaries@fastmail.us>
Date: Fri, 12 Feb 2010 22:16:51 -0600
Message-ID: <4B7627B3.4080400@fastmail.us>
To: Ojan Vafai <ojan@chromium.org>
CC: Brad Kemper <brad.kemper@gmail.com>, fantasai <fantasai.lists@inkedblade.net>, www-style@w3.org, Daniel Danilatos <danilatos@google.com>, Julie Parent <jparent@chromium.org>
On 2010-02-12 4:59 PM, Ojan Vafai wrote:
> Something like this is conceptually correct, except that p:empty
> doesn't apply to P elements that just have a span in them, or just
> have whitespace, etc.

How about |p::before { content: "\200c"; }|? I don't think the |empty|
pseudo-element is even necessary here; presumably, this would always
keep the element open (even if your script failed to do its job and
extract all content) since CSS-generated content won't be extracted.
Received on Saturday, 13 February 2010 04:17:27 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:32 UTC