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

Re: [CSS OM] list of issues

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 03 Jun 2011 01:30:03 -0400
Message-ID: <4DE8715B.2060709@mit.edu>
To: www-style@w3.org
On 6/3/11 1:03 AM, Sylvain Galineau wrote:

 > To reiterate, three
> browsers expect pseudoElt to begin with one of two colons.

Gecko expects pseudoElt to begin with two colons and be a pseudo-element 
we know about or be equal to one of the things in this list: ":before", 
":after", ":first-line", ":first-letter".

In other words, it imposes exactly the same constraints that 
http://www.w3.org/TR/css3-selectors/#pseudo-elements does.

Of course Selectors Level 3 no longer defines any pseudo-elements that 
CSS 2.1 doesn't define, so the difference only matters for moz-prefixed 

The other exciting part is how other input is handled:

1) Input starting with a single ':' that is not one of the CSS2.1 
pseudo-elements causes the argument to be ignored altogether (with some 
comments about how throwing an exception would maybe make more sense but 
is not allowed by the DOM spec).

2) Input not starting with ':' is ignored.

3) Input starting with '::' that is not a known pseudo-element throws an 
out-of-memory exception, as mentioned earlier.  This seems like a bug.

Received on Friday, 3 June 2011 05:30:36 UTC

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