blob: aa2895ab309ff98d704def6fb0e17b6827682076 [file] [log] [blame]
<?xml-stylesheet href="a" type="text/css"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body onload="test()">
<p>
This text should be styled green.
</p>
<script>
if (window.testRunner)
testRunner.dumpAsText();
if (!document.firstChild.data.match(/href="a"/))
alert("Please don't rename the stylesheet - the test needs its URL to be single character");
function test()
{
if (document.firstChild.sheet.cssRules.length)
document.getElementsByTagName("p")[0].innerHTML += " PASS.";
}
</script>
</body>
</html>