W3C home > Mailing lists > Public > www-style@w3.org > March 2012

Re: :empty matching nodes containing only non-significant whitespace WAS: [css4-text] A non-inherited property to control behavior of whitespace-only child boxes

From: fantasai <fantasai.lists@inkedblade.net>
Date: Fri, 30 Mar 2012 12:18:38 -0700
Message-ID: <4F76070E.2060500@inkedblade.net>
To: www-style@w3.org, Tantek Çelik <tantek@cs.stanford.edu>
On 03/30/2012 12:01 PM, Ojan Vafai wrote:
> For the editing use-case below, I'd like :empty to match nodes that contain only non-significant whitespace. Does anyone know
> what the use-cases for :empty as specced are?

I don't know. Imho, it should have been specced as applying to any element that
contains nothing but (optional) white space (whether preserved or not).

Maybe Tantek remembers why it's specced the way it is?

> If we're concerned about back-compat, we could instead add :collapsed to explicitly detect the case in question.

We can't actually do that, because selectors can't rely on style resolution.

Received on Friday, 30 March 2012 19:19:09 UTC

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