W3C home > Mailing lists > Public > www-style@w3.org > June 2013

Re: [cssom] What does Element.pseudo() return when there's no corresponding pseudo-element?

From: Simon Pieters <simonp@opera.com>
Date: Mon, 03 Jun 2013 10:39:46 +0200
To: "L. David Baron" <dbaron@dbaron.org>, "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "www-style list" <www-style@w3.org>
Message-ID: <op.wx3g0kycidj3kv@simons-macbook-pro.local>
On Sun, 02 Jun 2013 08:28:31 +0200, Tab Atkins Jr. <jackalmage@gmail.com>  
wrote:

> On Sat, Jun 1, 2013 at 12:06 AM, L. David Baron <dbaron@dbaron.org>  
> wrote:
>> http://dev.w3.org/csswg/cssom/#extensions-to-the-element-interface
>> describes an Element.pseudo() method.  It's not clear to me what
>> this returns when the pseudo-element isn't generated (in other
>> words, when the 'content' property [1] computes to 'none')
>>
>> Should it return null, or should it return an PseudoElement object
>> whose style, when queried, shows a computed value of 'content:none'?

https://dvcs.w3.org/hg/csswg/rev/8ed9ea07f552

>> -David
>>
>> [1]  
>> http://www.w3.org/TR/2011/REC-CSS2-20110607/generate.html#propdef-content
>
> The latter would be useful, especially if we expose mutable style on it.

The spec doesn't have mutable style on it (yet).

-- 
Simon Pieters
Opera Software
Received on Monday, 3 June 2013 08:39:35 UTC

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