OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Repaint test for http://bugs.webkit.org/show_bug.cgi?id=12123</title> | 4 <title>Repaint test for http://bugs.webkit.org/show_bug.cgi?id=12123</title> |
5 <script src="../../resources/ahem.js"></script> | 5 <script src="../../resources/ahem.js"></script> |
6 <style> | 6 <style> |
7 .spacer { width: 0; } | 7 .spacer { width: 0; height: 6px; } |
8 .test { border: thin dotted lightgray; margin: 2px; height: 35px; } | 8 .test { border: thin dotted lightgray; margin: 2px; height: 35px; } |
9 .outer { border: thin solid purple; padding: 5px; width: 50px; margin-le
ft: 50px; } | 9 .outer { border: thin solid purple; padding: 5px; width: 50px; margin-le
ft: 50px; } |
10 .outer > div { height: 10px; background-color: pink; } | 10 .outer > div { height: 10px; background-color: pink; } |
11 .outer > div > div { width: 40px; height: 10px; background-color: lightb
lue; } | 11 .outer > div > div { width: 40px; height: 10px; background-color: lightb
lue; } |
12 span { font-family: Ahem; color: blue; } | 12 span { font-family: Ahem; color: blue; } |
13 .box { display: -webkit-box; } | 13 .box { display: -webkit-box; } |
14 </style> | 14 </style> |
15 <script src="resources/text-based-repaint.js"></script> | |
16 <script> | |
17 function repaintTest() | |
18 { | |
19 for (i = 1; i < 15; ++i) | |
20 document.getElementById("spacer" + i).style.height = "6px"; | |
21 } | |
22 </script> | |
23 </head> | 15 </head> |
24 <body onload="runRepaintTest()"> | 16 <body> |
25 <div class="test"> | 17 <div class="test"> |
26 <div class="spacer" id="spacer1"></div> | 18 <div class="spacer" id="spacer1"></div> |
27 <div class="outer"> | 19 <div class="outer"> |
28 <div> | 20 <div> |
29 <div style="float: left; margin-left: -2px;"> | 21 <div style="float: left; margin-left: -2px;"> |
30 <span style="margin-left: -2px;">x</span> | 22 <span style="margin-left: -2px;">x</span> |
31 </div> | 23 </div> |
32 </div> | 24 </div> |
33 </div> | 25 </div> |
34 </div> | 26 </div> |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 <div class="outer"> | 167 <div class="outer"> |
176 <div style="display: inline-block; height: 20px;"> | 168 <div style="display: inline-block; height: 20px;"> |
177 <div style="float: left; margin-left: -8px;"> | 169 <div style="float: left; margin-left: -8px;"> |
178 <span>x</span> | 170 <span>x</span> |
179 </div> | 171 </div> |
180 </div> | 172 </div> |
181 </div> | 173 </div> |
182 </div> | 174 </div> |
183 </body> | 175 </body> |
184 </html> | 176 </html> |
OLD | NEW |