OLD | NEW |
1 <!-- Based on fast/repaint/child-of-sub-pixel-offset-composited-layer.html --> | 1 <!-- Based on fast/repaint/child-of-sub-pixel-offset-composited-layer.html --> |
2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style> | 5 <style> |
6 .container { | 6 .container { |
7 transform: translateZ(0); | 7 transform: translateZ(0); |
8 position: absolute; | 8 position: absolute; |
9 top: 100px; | 9 top: 100px; |
10 left:100.5px; | 10 left:100.5px; |
(...skipping 15 matching lines...) Expand all Loading... |
26 <script src="resources/paint-invalidation-test.js" type="text/javascript"></scri
pt> | 26 <script src="resources/paint-invalidation-test.js" type="text/javascript"></scri
pt> |
27 </head> | 27 </head> |
28 <body onload="runPaintInvalidationTest();"> | 28 <body onload="runPaintInvalidationTest();"> |
29 <div class="container"> | 29 <div class="container"> |
30 <div id="target"> | 30 <div id="target"> |
31 </div> | 31 </div> |
32 </div> | 32 </div> |
33 <script> | 33 <script> |
34 // This test ensures that children of a composited element with a sub-pixel offs
et are properly repainted. | 34 // This test ensures that children of a composited element with a sub-pixel offs
et are properly repainted. |
35 // The box should have a fully green border. | 35 // The box should have a fully green border. |
36 window.expectedPaintInvalidationObjects = [ | |
37 "LayoutBlockFlow (positioned) DIV id='target' class='green'", | |
38 ]; | |
39 function paintInvalidationTest() { | 36 function paintInvalidationTest() { |
40 var target = document.getElementById('target'); | 37 var target = document.getElementById('target'); |
41 target.classList.add('green'); | 38 target.classList.add('green'); |
42 } | 39 } |
43 </script> | 40 </script> |
OLD | NEW |