W3C home > Mailing lists > Public > www-style@w3.org > May 2010

[css3-namespaces] syntax-006.xml Test

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Wed, 05 May 2010 18:12:29 +0200
Message-ID: <4BE198ED.8070609@disruptive-innovations.com>
To: "www-style@w3.org" <www-style@w3.org>
I think we have a pretty useless test in the CSS 3 Namespaces
Test suite: syntax-006.xml test [1] seems to me almost outside of the
scope of this Test Suite because what it really tests is the invalidity
of the @import rule, not the invalidity of a @namespace rule because of
its context. The only constraint it checks is the existing constraint on
@import, nothing new, and that's in CSS 2.1...

I think a better test, enforcing the written rule "Any @namespace rules
must follow all @charset and @import rules and precede all other
non-ignored at-rules and rule sets in a style sheet" and matching better
the title of the test about "invalid ordering" is the following one:

     @namespace test url("test");
     @media all {
       test|test { background-color: lime; }
     @namespace test2 url("test");
     test2|test { background: red }
     <test xmlns="test">This sentence should have a green

Here, the second @namespace rule is invalid and the background should be

[1] http://www.w3.org/Style/CSS/Test/CSS3/Namespace/20090210/syntax-006.xml

Received on Wednesday, 5 May 2010 16:36:53 UTC

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