W3C home > Mailing lists > Public > www-style@w3.org > September 1999

CSS Namespaces: Need multiple namespaces!

From: Ian Hickson <py8ieh@bath.ac.uk>
Date: Wed, 29 Sep 1999 12:55:30 +0100 (BST)
To: Peter Linss <peterl@netscape.com>
cc: www-style <www-style@w3.org>
Message-ID: <Pine.GSO.4.04.9909281546570.27525-100000@ss1.bath.ac.uk>

In the CSS3 namespace draft, a namespace prefix can be associated with
only a single namespace at a time.

This is very, very limiting. For example, in the UA stylesheet of a UA
supporting HTML4 and XHTML, each element would need six entries!

   @namespace html4-strict url(...);
   @namespace html4-transitional url(...);
   @namespace html4-frameset url(...);
   @namespace xhtml4-strict url(...);
   @namespace xhtml4-transitional url(...);
   @namespace xhtml4-frameset url(...);

   html4-strict|h1, html4-transitional|h1, html4-frameset|h1, 
   xhtml4-strict|h1, xhtml4-transitional|h1, xhtml4-frameset|h1, ... { }

...and so on.

I suggest that the @namespace syntax be extended to allow an arbitrary
number of url()s, so that the above could be changed to this:

   @namespace html url(...) url(...) url(...) url(...) url(...)

   html|h1 { }


Ian Hickson
: Is your JavaScript ready for Nav5 and IE5?
: Get the latest JavaScript client sniffer at 
: http://developer.netscape.com/docs/examples/javascript/browser_type.html
Received on Wednesday, 29 September 1999 07:55:34 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:51 UTC