OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 #fixedTransformed { | 5 #fixedTransformed { |
6 position: fixed; | 6 position: fixed; |
7 transform: translateZ(0) | 7 transform: translateZ(0) |
8 } | 8 } |
9 #fixedOverlapping { | 9 #fixedOverlapping { |
10 position: fixed; | 10 position: fixed; |
(...skipping 10 matching lines...) Expand all Loading... |
21 } | 21 } |
22 </style> | 22 </style> |
23 <script src="resources/text-based-repaint.js"></script> | 23 <script src="resources/text-based-repaint.js"></script> |
24 <script> | 24 <script> |
25 function repaintTest() { | 25 function repaintTest() { |
26 var mP = document.getElementById("moveMe"); | 26 var mP = document.getElementById("moveMe"); |
27 mP.style.top = "150px"; | 27 mP.style.top = "150px"; |
28 mP.style.left = "150px"; | 28 mP.style.left = "150px"; |
29 } | 29 } |
30 | 30 |
31 runRepaintTest(); | 31 runRepaintAndPixelTest(); |
32 </script> | 32 </script> |
33 </head> | 33 </head> |
34 | 34 |
35 <body> | 35 <body> |
36 <p>This test checks that we correctly invalidate a shifted fixed positioned
element overlapping another fixed positioned element.</p> | 36 <p>This test checks that we correctly invalidate a shifted fixed positioned
element overlapping another fixed positioned element.</p> |
37 <p>For this test, there should be only one green square below.</p> | 37 <p>For this test, there should be only one green square below.</p> |
38 <div id="fixedTransformed"></div> | 38 <div id="fixedTransformed"></div> |
39 <div id="fixedOverlapping"></div> | 39 <div id="fixedOverlapping"></div> |
40 <div id="moveMe"></div> | 40 <div id="moveMe"></div> |
41 </body> | 41 </body> |
OLD | NEW |