| <!-- Based on fast/repaint/clip-path-constant-repaint.html --> |
| <!DOCTYPE html> |
| <html> |
| <head> |
| <script src="resources/paint-invalidation-test.js"></script> |
| <script type="text/javascript"> |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| window.onload = function() { |
| runPaintInvalidationTest(); |
| }; |
| |
| function paintInvalidationTest() { |
| document.getElementById('clip').style.transform = 'translateY(100px)'; |
| } |
| </script> |
| <style> |
| #clip { |
| width: 100%; |
| height: 300px; |
| position: fixed; |
| background-color: rgba(255, 0, 0, 0.9); |
| -webkit-clip-path: polygon(0px 0px, 100% 0px, 100% 100%, 0px 83%); |
| -webkit-backface-visibility: hidden; |
| } |
| </style> |
| </head> |
| <body> |
| <div id="clip"></div> |
| </body> |
| </html> |