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

Re: [selectors-nonelement] First draft of a new spec for selecting non-element nodes

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 14 Feb 2014 18:16:36 -0800
Message-ID: <CAAWBYDAWqtSBm3ftv1t9zYjDkORtsshCSUQO2163XwmYYXK_bg@mail.gmail.com>
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: Daniel Glazman <daniel.glazman@disruptive-innovations.com>, www-style list <www-style@w3.org>
On Fri, Feb 14, 2014 at 5:37 PM, Andrew Fedoniouk
<news@terrainformatica.com> wrote:
> On Thu, Feb 13, 2014 at 12:33 PM, Daniel Glazman
> <daniel.glazman@disruptive-innovations.com> wrote:
>> On 13/02/14 21:14, Tab Atkins Jr. wrote:
>>
>>> While I could certainly add it as a note, it's not needed normatively.
>>>  Would that be okay?
>>
>> I recommend turning
>>
>>   In CSS, attribute node pseudo-elements never generate boxes
>>
>> into
>>
>>   Although entirely valid in Selectors used in the scope of CSS,
>>   attribute node pseudo-elements never generate boxes.
>>
>> and adding your example as a Note or non-normative example.
>>
>> </Daniel>
>>
>>
>
> Why "never" by the way?
>
> I can imagine something like this:
>
> input[type=number]:empty::attr(placeholder) {
>   display:block;
>   color:grey;
> }

What is this supposed to do?

> be quite useful. Or this:
>
> img:incomplete::attr(alt) {
>   display:block;
>   color:red;
> }

Same here - what is this supposed to do?

~TJ
Received on Saturday, 15 February 2014 02:17:24 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:19 UTC