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