1 <?xml-stylesheet type=
"text/css" href=
"data:text/css,root { color: green; }"?>
2 <?xml-stylesheet alternate=
"yes" type=
"text/css" href=
"data:text/css,root { color: red; }"?>
4 <root xmlns=
"http://www.w3.org/1999/xhtml" >
6 <meta charset=
"utf-8"/>
7 <script src=
"../../resources/js-test.js"></script>
10 description("xml alternate stylesheet with no title test");
12 window
.onload = function() {
14 if (window
.testRunner
)
15 testRunner
.dumpAsText();
17 if (document
.styleSheets
.length
> 1)
18 document
.styleSheets
[1].disabled
= false;
20 element
= document
.getElementById("sampleText") ;
21 shouldBe("getComputedStyle(element).getPropertyValue('color')", "'rgb(0, 128, 0)'");
28 <div id=
"sampleText">This text should be green
</div>