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

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.

~fantasai

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