OLD | NEW |
| 1 <!-- Based on fast/repaint/clip-path-constant-repaint.html --> |
1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
2 <html> | 3 <html> |
3 <head> | 4 <head> |
4 <script src="resources/text-based-repaint.js"></script> | 5 <script src="resources/paint-invalidation-test.js"></script> |
5 <script type="text/javascript"> | 6 <script type="text/javascript"> |
6 window.onload = function() { | 7 window.onload = function() { |
7 runRepaintTest(); | 8 runPaintInvalidationTest(); |
8 }; | 9 }; |
9 | 10 |
10 function repaintTest() { | 11 window.expectedPaintInvalidationObjects = [ |
| 12 ]; |
| 13 function paintInvalidationTest() { |
11 document.getElementById('clip').style.transform = 'translateY(100px)'; | 14 document.getElementById('clip').style.transform = 'translateY(100px)'; |
12 } | 15 } |
13 </script> | 16 </script> |
14 <style> | 17 <style> |
15 #clip { | 18 #clip { |
16 width: 100%; | 19 width: 100%; |
17 height: 300px; | 20 height: 300px; |
18 position: fixed; | 21 position: fixed; |
19 background-color: rgba(255, 0, 0, 0.9); | 22 background-color: rgba(255, 0, 0, 0.9); |
20 -webkit-clip-path: polygon(0px 0px, 100% 0px, 100% 100%, 0px 83%); | 23 -webkit-clip-path: polygon(0px 0px, 100% 0px, 100% 100%, 0px 83%); |
21 -webkit-backface-visibility: hidden; | 24 -webkit-backface-visibility: hidden; |
22 } | 25 } |
23 </style> | 26 </style> |
24 </head> | 27 </head> |
25 <body> | 28 <body> |
26 <div id="clip"></div> | 29 <div id="clip"></div> |
27 </body> | 30 </body> |
28 </html> | 31 </html> |
OLD | NEW |