Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / misc / single-character-pi-stylesheet.xhtml
blob16e7960958d0c811fc41c7fbfff924b28020da35
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();
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");
16 function test()
18 if (document.firstChild.sheet.cssRules.length)
19 document.getElementsByTagName("p")[0].innerHTML += " PASS.";
22 </script>
23 </body>
24 </html>