[css3-namespace] Scope of Namespace with @import

Hi,
This is a QA Review comment for "CSS Module: Namespaces"
http://www.w3.org/TR/2006/WD-css3-namespace-20060828/
2006-08-28
2nd WD

About http://www.w3.org/TR/2006/WD-css3-namespace-20060828/#scope

The specifications says

 [[[
 The namespace prefix is declared only within the 
 style sheet in which its @namespace rule appears, 
 and not any style sheets imported by that style sheet, 
 style sheets that import that style sheet, or any 
 other style sheets applying to the document.
 ]]]

Then let's take this example.

<html xmlns="http://www.w3.org/2002/06/xhtml2/"
      xmlns:dc="http://dublincore.org/documents/dcmi-namespace/"
      xml:lang="en">
   <head>
     <title>Some Document</title>
  <style type="text/css">
     @import url(foo.css);
     @namespace dc "http://dublincore.org/documents/dcmi-namespace/";
     dc|title {text-align: center;}
  dc\:title {text-align: right;}
   </style>
   </head>
   <body>
     <dc:title><cite href="urn:isbn:0060006994">Fix-it Duck</cite></dc:title>
   </body>
 </html>

with foo.css containing

 @namespace dc "http://dublincore.org/documents/dcmi-namespace/";
 dc|title {text-align: left;}

Which rules apply? From the specification as it is defined, it is not sure.




-- 
Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager, QA Activity Lead
   QA Weblog - http://www.w3.org/QA/
      *** Be Strict To Be Cool ***

Received on Tuesday, 5 September 2006 05:57:27 UTC