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; } |
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> | 15 <script src="resources/text-based-repaint.js"></script> |
16 <script> | 16 <script> |
17 function repaintTest() | 17 function repaintTest() |
18 { | 18 { |
19 for (i = 1; i < 15; ++i) | 19 for (i = 1; i < 15; ++i) |
20 document.getElementById("spacer" + i).style.height = "6px"; | 20 document.getElementById("spacer" + i).style.height = "6px"; |
21 } | 21 } |
22 </script> | 22 </script> |
23 </head> | 23 </head> |
24 <body onload="runRepaintTest()"> | 24 <body onload="runRepaintAndPixelTest()"> |
25 <div class="test"> | 25 <div class="test"> |
26 <div class="spacer" id="spacer1"></div> | 26 <div class="spacer" id="spacer1"></div> |
27 <div class="outer"> | 27 <div class="outer"> |
28 <div> | 28 <div> |
29 <div style="float: left; margin-left: -2px;"> | 29 <div style="float: left; margin-left: -2px;"> |
30 <span style="margin-left: -2px;">x</span> | 30 <span style="margin-left: -2px;">x</span> |
31 </div> | 31 </div> |
32 </div> | 32 </div> |
33 </div> | 33 </div> |
34 </div> | 34 </div> |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 <div class="outer"> | 175 <div class="outer"> |
176 <div style="display: inline-block; height: 20px;"> | 176 <div style="display: inline-block; height: 20px;"> |
177 <div style="float: left; margin-left: -8px;"> | 177 <div style="float: left; margin-left: -8px;"> |
178 <span>x</span> | 178 <span>x</span> |
179 </div> | 179 </div> |
180 </div> | 180 </div> |
181 </div> | 181 </div> |
182 </div> | 182 </div> |
183 </body> | 183 </body> |
184 </html> | 184 </html> |
OLD | NEW |