- From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
- Date: Wed, 05 May 2010 18:12:29 +0200
- 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:
<style>
@namespace test url("test");
@media all {
test|test { background-color: lime; }
}
@namespace test2 url("test");
test2|test { background: red }
</style>
<p>
<test xmlns="test">This sentence should have a green
background.</test>
</p>
Here, the second @namespace rule is invalid and the background should be
green.
[1] http://www.w3.org/Style/CSS/Test/CSS3/Namespace/20090210/syntax-006.xml
</Daniel>
Received on Wednesday, 5 May 2010 16:36:53 UTC