W3C home > Mailing lists > Public > www-style@w3.org > March 2008

Re: [css3-namespace] Last call comments from XHTML2 WG

From: L. David Baron <dbaron@dbaron.org>
Date: Fri, 28 Mar 2008 10:55:14 -0700
To: Steven Pemberton <steven.pemberton@cwi.nl>, Bjoern Hoehrmann <derhoermi@gmx.net>, www-style@w3.org, Forms WG <public-forms@w3.org>, XHTML WG <public-xhtml2@w3.org>
Message-ID: <20080328175514.GA21141@ridley.dbaron.org>

On Friday 2008-03-28 10:44 -0700, L. David Baron wrote:
> On Friday 2008-03-28 17:11 +0100, Steven Pemberton wrote:
> > A note pointing out that default namespaces alter the way that type 
> > selectors work compared with earlier versions of CSS, and if you want to 
> > avoid that you should always use explicit qualified names would do the 
> > trick.
> 
> But using explicit qualified names is a *really* bad idea, since it
> makes the style sheet depend on specific namespace prefixes being
> used in the document.  We really shouldn't suggest doing that.

Other working group members tell me that I misunderstood your
comment.  I thought you were suggesting that authors should write
selectors like "html\:p", but they say you want authors to write
"html|p".

Which were you suggesting?

However, I don't see how that is any better, given that "html|p"
wouldn't be supported by the older CSS implementations that you're
trying to be compatible with.  So both ways would produce different
results in implementations that don't support css3-namespace.  And
given that the default namespace has a pretty good chance of being
the one that the majority of the nodes are in, having the default
namespace seems likely to minimize the number of node*selector pairs
that produce different matching results.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Friday, 28 March 2008 17:56:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:02 GMT