4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8"/>
5 <title>Bug
34529 - [CSSOM] issues with cssText and selectorText
</title>
6 <style type=
"text/css">
7 /* Control characters */
20 /* Characters following '-' */
30 /* non-ASCII characters */
34 /* unicode characters */
38 /* unicode supplementary characters (surrogate pairs) */
42 /* plain characters */
50 #a\
.external\
:visited
{
54 li
[myattr
="my\"value\\
"] {
62 <script src="../../resources
/js-test
.js
"></script>
65 <p id="description
"></p>
67 List items must be green. Otherwise some selectors are invalid.
69 <li class="_class
">class="&
;#001;_class
"</li>
70 <li class="_class
">class="&
;#031;_class
"</li>
71 <li class="0_class">class="0_class"</li>
72 <li class="9_class">class="9_class"</li>
73 <li class="-0_class">class="-0_class"</li>
74 <li class="-9_class">class="-9_class"</li>
75 <li class="--_class
">class="--_class
"</li>
76 <li class="_class
">class="&
;#129;_class
"</li>
77 <li class="日本語_class
">class="日本語_class
"</li>
78 <li class="𐐀_class
">class="𐐀_class
"</li>
79 <li class="azAZ09_-_class
">class="azAZ09_-_class
"</li>
80 <li class="(/:@
[~_class
">class="(/:@
[~_class
"</li>
81 <li id="a
.external:visited
">id="a
.external:visited
"</li>
82 <li myattr="my
"value
\">myattr="my
"value
\"</li>
85 <div id="console
"></div>
86 <script type="text
/javascript
">
87 description("Test for Bug
34529 - [CSSOM
] issues with cssText and selectorText
");
101 ".\\
(\\
/\\
:\\@\\
[\\
~_class
",
102 "#a\\
.external\\
:visited
",
103 'li[myattr="my\\
"value\\\\"]'
106 var rules = document.styleSheets[0].cssRules;
107 for (var i = 0; i < expectedTexts.length; i++) {
108 shouldBe("rules[" + i + "].selectorText", "expectedTexts[" + i + "]");
109 shouldBe("rules[" + i + "].cssText", "expectedTexts[" + i + "] + ' { color: green
; }'");