OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 3 <script> |
| 4 onload = function() { |
| 5 runAfterLayoutAndPaint(function() { |
| 6 document.getElementById('container-outer').style.width = '600px'; |
| 7 }, true); |
| 8 }; |
| 9 </script> |
| 10 <style> |
| 11 #container-outer { |
| 12 background-color: red; |
| 13 height: 300px; |
| 14 transform: translateX(400%); |
| 15 width: 400px; |
| 16 } |
| 17 #container-inner { |
| 18 background-color: green; |
| 19 height: 300px; |
| 20 left: -400%; |
| 21 position: absolute; |
| 22 width: 100%; |
| 23 } |
| 24 #content { |
| 25 background-color: blue; |
| 26 height: 300px; |
| 27 width: 300px; |
| 28 } |
| 29 </style> |
| 30 Tests paint invalidation on resize of container with percentage-transform (causi
ng change of paint offset, but no change of paint invalidation offset). Passes i
f there is a blue square and a green square side-by-side. |
| 31 <div style="overflow: hidden; width: 700px; height: 500px"><!-- to avoid scrollb
ar --> |
| 32 <div id="container-outer"> |
| 33 <div id="container-inner"> |
| 34 <div id="content"></div> |
| 35 </div> |
| 36 </div> |
| 37 </div> |
OLD | NEW |