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

Re: [selectors][css-namespaces][css-scoping] Clash between Namespaces and Scoping regarding implied universal selector

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 08 Aug 2014 21:42:03 -0400
Message-ID: <53E57C6B.5050406@mit.edu>
To: www-style@w3.org
On 8/8/14, 8:25 PM, Tab Atkins Jr. wrote:
> This will only have an effect on pages that (a)
> declare a default namespace in CSS, (b) use elements not in that
> namespace, and (c) use selectors without type selectors.

It will also affect user and UA stylesheets, for which (b) becomes:

(b) Are applied to pages that use elements in some other namespace.

For example, the UA stylesheet the HTML spec defines would need to 
change.  As would various user stylesheets, likely.  Note that the 
difference in (b) makes this a lot less of an edge case than the author 
stylesheet version.

I'm not sure I want to go break user stylesheets, honestly, as a UA 
implementor.

> 2. Define that an element's namespace is *separate from* its type, and
> that featureless elements match all namespaces.

This seems simplest to me, fwiw: you have to special-case "featureless" 
elements anyway, since they're not actual elements, so you might as well 
special-case how the matching of namespaces happens for them...

-Boris
Received on Saturday, 9 August 2014 01:42:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:45 UTC