This tests whether, as 4.1.7 states, the whole block is ignored if there is an error anywhere in the selector.
ADD:cheese1, .four17h {color: red}) - cheese1 is a valid token
.xish {cheese: "}"; color: red
<PRE> {color: red}
:h(9), .x1 {color: red} (although it should at CSS3 selectors).
.x2, :h(9) {color: red} (although it should at CSS3 selectors).
:h("hello"), .x3 {color: red} (although it should at CSS3 selectors).
.x4, :h("hello") {color: red} (although it should at CSS3 selectors).
.sfour17a + ; .sfour17b {color: red}
.sfour17a + ; .sfour17b {color: red}
should not be red for CSS1 UAs :focus:link, .four17c {color: red}
ADD:1cheese, .four17d {color: red}) - 1cheese is not a valid token, and if a UA cannot parse a selector, it should ignore the whole ruleset.
:1cheese, .four172 {color: red}
.1cheese, .four17p3 {color: red}
.four17po, :1cheese {color: red}
.four17p2, P:1cheese {color: red}
.four17g, 1element {color: red}
.four17e, P & X {color: red}
P & X, .four17f {color: red}
This should not be red - missing closing brace.
This should not be red - missing closing brace and semicolon.
Copyright © RichInStyle.com 2000; all rights reserved. See copyright document for terms of use. Please visit Bukit Lawang flood appeal.