Reviewed by Maciej.
[WebKit-https.git] / LayoutTests / fast / parser / html-whitespace.html
1 <html>
2 <head>
3 <meta charset="windows-1252">
4 <style>
5 div { background-color:green }
6 .whitespace { background-color:red }
7 </style>
8 </head>
9 <body>
10 <script>if (window.layoutTestController) layoutTestController.dumpAsText();</script>
11 <div \0style="background-color:red">00</div>
12 <div \ 1style="background-color:red">01</div>
13 <div \ 2style="background-color:red">02</div>
14 <div \ 3style="background-color:red">03</div>
15 <div \ 4style="background-color:red">04</div>
16 <div \ 5style="background-color:red">05</div>
17 <div \ 6style="background-color:red">06</div>
18 <div \astyle="background-color:red">07</div>
19 <div \bstyle="background-color:red">08</div> <!-- BACKSPACE -->
20 <div    style="background-color:green" class="whitespace">09</div> <!-- CHARACTER TABULATION -->
21 <div 
22 style="background-color:green" class="whitespace">0a</div> <!-- LINE FEED -->
23 <div \vstyle="background-color:green" class="whitespace">0b</div> <!-- LINE TABULATION -->
24 <div \fstyle="background-color:green" class="whitespace">0c</div> <!-- FORM FEED -->
25 <div \rstyle="background-color:green" class="whitespace">0d</div> <!-- CARRIAGE RETURN -->
26 <div \ estyle="background-color:red">0e</div>
27 <div \ fstyle="background-color:red">0f</div>
28 <div \10style="background-color:red">10</div>
29 <div \11style="background-color:red">11</div>
30 <div \12style="background-color:red">12</div>
31 <div \13style="background-color:red">13</div>
32 <div \14style="background-color:red">14</div>
33 <div \15style="background-color:red">15</div>
34 <div \16style="background-color:red">16</div>
35 <div \17style="background-color:red">17</div>
36 <div \18style="background-color:red">18</div>
37 <div \19style="background-color:red">19</div>
38 <div \1astyle="background-color:red">1a</div>
39 <div \estyle="background-color:red">1b</div>
40 <div \1cstyle="background-color:red">1c</div>
41 <div \1dstyle="background-color:red">1d</div>
42 <div \1estyle="background-color:red">1e</div>
43 <div \1fstyle="background-color:red">1f</div>
44 <script>
45 var divs = document.getElementsByTagName('div');
46 for (var i = 0; i < divs.length; ++i) {
47     divs[i].innerText += " " + document.defaultView.getComputedStyle(divs[i], null).backgroundColor;
48 }
49 </script>
50 </body>
51 </html>