Re: collapsible property

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