OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <script src="resources/text-based-repaint.js"></script> | 2 <script src="resources/text-based-repaint.js"></script> |
3 <script> | 3 <script> |
4 function repaintTest() | 4 function repaintTest() |
5 { | 5 { |
6 document.getElementById('target').style.verticalAlign = '50px'; | 6 document.getElementById('target').style.verticalAlign = '50px'; |
7 } | 7 } |
8 window.onload = runRepaintAndPixelTest; | 8 window.onload = runRepaintAndPixelTest; |
9 </script> | 9 </script> |
10 <style> | 10 <style> |
11 body { | 11 body { |
12 margin: 0; | 12 margin: 0; |
13 } | 13 } |
14 .other { | 14 .other { |
15 width: 200px; | 15 width: 200px; |
16 height: 200px; | 16 height: 200px; |
17 background-color: blue; | 17 background-color: blue; |
18 display: inline-block; | 18 display: inline-block; |
19 } | 19 } |
20 #target { | 20 #target { |
21 width: 100px; | 21 width: 100px; |
22 height: 100px; | 22 height: 100px; |
23 background-color: green; | 23 background-color: green; |
24 display: inline-block; | 24 display: inline-block; |
25 vertical-align: 20px; | 25 vertical-align: 20px; |
26 } | 26 } |
27 </style> | 27 </style> |
28 <div class="other"></div><div id="target"></div><div class="other"></div> | 28 <div class="other"></div><div id="target"></div><div class="other"></div> |
OLD | NEW |