haikuwebkit/LayoutTests/fast/parser/html-whitespace.html

52 lines
2.0 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html>
<head>
<meta charset="windows-1252">
<style>
div { background-color:green }
.whitespace { background-color:red }
</style>
</head>
<body>
<script>if (window.testRunner) testRunner.dumpAsText();</script>
<div style="background-color:red">00</div>
<div style="background-color:red">01</div>
<div style="background-color:red">02</div>
<div style="background-color:red">03</div>
<div style="background-color:red">04</div>
<div style="background-color:red">05</div>
<div style="background-color:red">06</div>
<div style="background-color:red">07</div>
<div style="background-color:red">08</div> <!-- BACKSPACE -->
<div style="background-color:green" class="whitespace">09</div> <!-- CHARACTER TABULATION -->
<div
style="background-color:green" class="whitespace">0a</div> <!-- LINE FEED -->
<div style="background-color:green" class="whitespace">0b</div> <!-- LINE TABULATION -->
<div style="background-color:green" class="whitespace">0c</div> <!-- FORM FEED -->
<div
style="background-color:green" class="whitespace">0d</div> <!-- CARRIAGE RETURN -->
<div style="background-color:red">0e</div>
<div style="background-color:red">0f</div>
<div style="background-color:red">10</div>
<div style="background-color:red">11</div>
<div style="background-color:red">12</div>
<div style="background-color:red">13</div>
<div style="background-color:red">14</div>
<div style="background-color:red">15</div>
<div style="background-color:red">16</div>
<div style="background-color:red">17</div>
<div style="background-color:red">18</div>
<div style="background-color:red">19</div>
<div style="background-color:red">1a</div>
<div style="background-color:red">1b</div>
<div style="background-color:red">1c</div>
<div style="background-color:red">1d</div>
<div style="background-color:red">1e</div>
<div style="background-color:red">1f</div>
<script>
var divs = document.getElementsByTagName('div');
for (var i = 0; i < divs.length; ++i) {
divs[i].innerText += " " + document.defaultView.getComputedStyle(divs[i], null).backgroundColor;
}
</script>
</body>
</html>