OLD | NEW |
| 1 <!-- Based on fast/box-shadow/shadow-box-resize-writing-mode.html --> |
1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
2 <script src="../repaint/resources/text-based-repaint.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
3 <script> | 4 <script> |
4 function repaintTest() | 5 window.expectedPaintInvalidationObjects = [ |
| 6 "LayoutBlockFlow (positioned) DIV id='target1'", |
| 7 "LayoutBlockFlow (positioned) DIV id='target2'", |
| 8 "LayoutBlockFlow (positioned) DIV id='target3'", |
| 9 "LayoutBlockFlow (positioned) DIV id='target4'", |
| 10 ]; |
| 11 function paintInvalidationTest() |
5 { | 12 { |
6 document.getElementById('target1').style.width = '150px'; | 13 document.getElementById('target1').style.width = '150px'; |
7 document.getElementById('target2').style.width = '50px'; | 14 document.getElementById('target2').style.width = '50px'; |
8 document.getElementById('target3').style.height = '150px'; | 15 document.getElementById('target3').style.height = '150px'; |
9 document.getElementById('target4').style.height = '50px'; | 16 document.getElementById('target4').style.height = '50px'; |
10 } | 17 } |
11 window.onload = runRepaintTest; | 18 window.onload = runPaintInvalidationTest; |
12 </script> | 19 </script> |
13 <style> | 20 <style> |
14 body { | 21 body { |
15 margin: 0; | 22 margin: 0; |
16 } | 23 } |
17 div { | 24 div { |
18 position: absolute; | 25 position: absolute; |
19 width: 100px; | 26 width: 100px; |
20 height: 100px; | 27 height: 100px; |
21 background-color: green; | 28 background-color: green; |
(...skipping 14 matching lines...) Expand all Loading... |
36 } | 43 } |
37 #target4 { | 44 #target4 { |
38 top: 300px; | 45 top: 300px; |
39 left: 300px; | 46 left: 300px; |
40 } | 47 } |
41 </style> | 48 </style> |
42 <div id="target1"></div> | 49 <div id="target1"></div> |
43 <div id="target2"></div> | 50 <div id="target2"></div> |
44 <div id="target3"></div> | 51 <div id="target3"></div> |
45 <div id="target4"></div> | 52 <div id="target4"></div> |
OLD | NEW |