| <!DOCTYPE html> |
| <html> |
| <head> |
| <script src="../resources/text-based-repaint.js"></script> |
| <script type="text/javascript"> |
| window.onload = function() { |
| runRepaintAndPixelTest(); |
| }; |
| |
| function repaintTest() { |
| document.getElementById('clip').style.transform = 'translateY(100px)'; |
| } |
| </script> |
| <style> |
| #clip { |
| width: 100%; |
| height: 300px; |
| position: fixed; |
| background-color: rgba(255, 0, 0, 0.9); |
| clip-path: polygon(0px 0px, 100% 0px, 100% 100%, 0px 83%); |
| will-change: transform; |
| } |
| </style> |
| </head> |
| <body> |
| <div id="clip"></div> |
| </body> |
| </html> |