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