1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
"http://www.w3.org/TR/html4/strict.dtd">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<!-- This file contains embedded NULs (U+0000). Take care when editing to
6
preserve them. There are no other control characters or characters
9
This test involves constructs with undefined behavior in CSS 2.1.
10
However, unlike 228856-1, the author is confident that future
11
specification of the behavior of NULs (whether literal or written with
12
\-escapes) will not contradict the behavior expected by this test. -->
14
<title>Selectors and properties test case for bug 228856</title>
15
<style type="text/css">
16
p {margin-bottom:0; color:black; font-weight:bold; }
17
tr { vertical-align: top }
18
td { padding-right: 0.5em }
21
div { color: green; font: 6pt monospace; }
23
/* These selectors should not match anything. */
45
/* These properties should not be treated as 'color: red'. */
46
#p1 { \000000color: red }
47
#p2 { \00000 color: red }
48
#p3 { c\000000olor: red }
49
#p4 { c\00000 olor: red }
50
#p5 { color\000000: red }
51
#p6 { color\00000 : red }
52
#p7 { color: \000000red }
53
#p8 { color: \00000 red }
54
#p9 { color: r\000000ed }
55
#pA { color: r\00000 ed }
56
#pB { color: red\000000 }
60
<!-- None of these rules should be effective on any medium. -->
61
<style> @\000000media all { .m1 { color: red; } } </style>
62
<style> @me\000000dia all { .m2 { color: red; } } </style>
63
<style> @media\000000 all { .m3 { color: red; } } </style>
64
<style> @media \000000all { .m4 { color: red; } } </style>
65
<style> @media al\000000l { .m5 { color: red; } } </style>
66
<style> @media all\000000 { .m6 { color: red; } } </style>
69
<p>red=FAIL green=PASS</p>
74
<div id="�i1">#\0id / #&#0;id</div>
75
<div id="i�1">#\0id / #i&#0;d</div>
76
<div id="i1�">#\0id / #id&#0;</div>