OLD | NEW |
1 <!-- Based on fast/repaint/outline-change-offset.html --> | 1 <!-- Based on fast/repaint/outline-change-offset.html --> |
2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
3 <script src="resources/paint-invalidation-test.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
4 <script> | 4 <script> |
5 window.expectedPaintInvalidationObjects = [ | |
6 "LayoutBlockFlow (positioned) DIV id='indicator'", | |
7 "LayoutBlockFlow (positioned) DIV id='target'", | |
8 ]; | |
9 function paintInvalidationTest() { | 5 function paintInvalidationTest() { |
10 document.getElementById('target').style.outlineOffset = '10px'; | 6 document.getElementById('target').style.outlineOffset = '10px'; |
11 } | 7 } |
12 onload = runPaintInvalidationTest; | 8 onload = runPaintInvalidationTest; |
13 </script> | 9 </script> |
14 | 10 |
15 <style> | 11 <style> |
16 div { | 12 div { |
17 position: absolute; | 13 position: absolute; |
18 top: 50px; | 14 top: 50px; |
19 left: 50px; | 15 left: 50px; |
20 width: 100px; | 16 width: 100px; |
21 height: 100px; | 17 height: 100px; |
22 } | 18 } |
23 | 19 |
24 #target { | 20 #target { |
25 outline: green solid 5px; | 21 outline: green solid 5px; |
26 outline-offset: 5px; | 22 outline-offset: 5px; |
27 } | 23 } |
28 | 24 |
29 #indicator { | 25 #indicator { |
30 outline: red solid 5px; | 26 outline: red solid 5px; |
31 outline-offset: 10px; | 27 outline-offset: 10px; |
32 } | 28 } |
33 </style> | 29 </style> |
34 | 30 |
35 Box should be repainted when outline-offset style changes. Passes if no red. | 31 Box should be repainted when outline-offset style changes. Passes if no red. |
36 <div id="indicator"></div> | 32 <div id="indicator"></div> |
37 <div id="target"></div> | 33 <div id="target"></div> |
OLD | NEW |