Re: :first pseudo-selector

On 03/25/2012 08:15 AM, Daniel Bock wrote:
> Am 20.03.2012 02:59, schrieb fantasai:
>>
>> FWIW, I don't think it will get resolved any time soon, since Selectors
>> so far is markup-agnostic; it wouldn't make sense to have HTML-specific
>> pseudo-classes. But you're not the first person to suggest some kind of
>> pre-defined grouping, so maybe we need to find a way to create them.
>
> It doesn't depend on HTML, it - depending on the concrete implementation
> - may depend on the "display" value of the first element in a box. The
> detection of "noscript" elements is just a workaround.

Depending on the 'display' value of the element won't work because selectors
can't depend on style resolution.

~fantasai

Received on Monday, 26 March 2012 05:43:08 UTC