blob: 18a4efb595af3a8228fa9c500b96127f4b9f2f16 [file] [log] [blame]
<head>
<style>
</style>
<script>
/** Changes the result text font size. */
function runTest()
{
document.getElementById("result").firstChild.setAttribute("style","font-size: 16\\70\r\nx;");
if (window.testRunner)
testRunner.dumpAsText();
if (document.getElementById("result").firstChild.style.fontSize === document.getElementById("expected").firstChild.style.fontSize)
document.getElementById("message").firstChild.data = "SUCCESS";
else
document.getElementById("message").firstChild.data = "FAILURE";
}
</script>
</head>
<body onload="runTest()">
<p>Test parsing of CSS '\r\n' newline characters.</p>
<p id="message">TEST DID NOT COMPLETE</p>
<p>Rules from the stylesheet:</p>
<pre id="result">
<p style="font-size: 12px;">Font size is 16px.</p>
</pre>
<p>Expected result:</p>
<pre id="expected">
<p style="font-size: 16px;">Font size is 16px.</p>
</pre>
<script>
</script>
</body>