Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / misc / single-character-pi-stylesheet.xhtml
1 <?xml-stylesheet href="a" type="text/css"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head></head>
5 <body onload="test()">
6 <p>
7 This text should be styled green.
8 </p>
9 <script>
10 if (window.testRunner)
11     testRunner.dumpAsText();
12
13 if (!document.firstChild.data.match(/href="a"/))
14     alert("Please don't rename the stylesheet - the test needs its URL to be single character");
15
16 function test()
17 {
18     if (document.firstChild.sheet.cssRules.length)
19         document.getElementsByTagName("p")[0].innerHTML += " PASS.";
20 }
21
22 </script>
23 </body>
24 </html>