Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / xml-stylesheet-alternate-no-title.xhtml
bloba07dfdaa32d28657f8c20dc0cc92e6e4cbcde9a7
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; }"?>
3 <!DOCTYPE html>
4 <root xmlns="http://www.w3.org/1999/xhtml" >
5 <head>
6 <meta charset="utf-8"/>
7 <script src="../../resources/js-test.js"></script>
8 <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)'");
24 </script>
25 </head>
27 <body>
28 <div id="sampleText">This text should be green</div>
30 </body>
31 </root>