OLD | NEW |
| (Empty) |
1 <!-- Based on fast/repaint/align-items-overflow-change.html --> | |
2 <!DOCTYPE HTML> | |
3 <script src="resources/paint-invalidation-test.js"></script> | |
4 <script> | |
5 function paintInvalidationTest() { | |
6 document.getElementById('container').style.alignItems = 'end safe'; | |
7 } | |
8 onload = runPaintInvalidationTest; | |
9 </script> | |
10 <style> | |
11 body { | |
12 margin: 0; | |
13 } | |
14 #container { | |
15 display: grid; | |
16 grid: 200px / 150px 150px; | |
17 align-items: end true; | |
18 width: 200px; | |
19 height: 300px; | |
20 background-color: red; | |
21 } | |
22 .item1 { | |
23 grid-row: 1; | |
24 grid-column: 1; | |
25 background-color: green; | |
26 } | |
27 .item2 { | |
28 grid-row: 2; | |
29 grid-column: 1; | |
30 background-color: green; | |
31 } | |
32 </style> | |
33 <p style="height: 20px">Tests invalidation on align-items style change (just ove
rflow). Passes if there is no red.</p> | |
34 <div id="container"> | |
35 <div class="item1"> | |
36 <div style="height: 200px"></div> | |
37 </div> | |
38 <div class="item2"> | |
39 <div style="height: 100px"></div> | |
40 </div> | |
41 </div> | |
OLD | NEW |