OLD | NEW |
| 1 <!-- Based on fast/repaint/justify-items-change.html --> |
1 <!DOCTYPE HTML> | 2 <!DOCTYPE HTML> |
2 <script src="resources/text-based-repaint.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
3 <script> | 4 <script> |
4 function repaintTest() { | 5 window.expectedPaintInvalidationObjects = [ |
| 6 "LayoutBlockFlow DIV", |
| 7 "LayoutBlockFlow DIV class='item'", |
| 8 "LayoutGrid DIV id='container'", |
| 9 "LayoutGrid DIV id='container'", |
| 10 "LayoutBlockFlow DIV class='item'", |
| 11 "LayoutBlockFlow DIV", |
| 12 ]; |
| 13 function paintInvalidationTest() { |
5 document.getElementById('container').style.justifyItems = 'start'; | 14 document.getElementById('container').style.justifyItems = 'start'; |
6 } | 15 } |
7 onload = runRepaintTest; | 16 onload = runPaintInvalidationTest; |
8 </script> | 17 </script> |
9 <style> | 18 <style> |
10 body { | 19 body { |
11 margin: 0; | 20 margin: 0; |
12 } | 21 } |
13 #container { | 22 #container { |
14 display: grid; | 23 display: grid; |
15 grid: 200px / 300px; | 24 grid: 200px / 300px; |
16 justify-items: end; | 25 justify-items: end; |
17 width: 200px; | 26 width: 200px; |
18 height: 300px; | 27 height: 300px; |
19 background-color: red; | 28 background-color: red; |
20 } | 29 } |
21 .item { | 30 .item { |
22 grid-row: 1; | 31 grid-row: 1; |
23 grid-column: 1; | 32 grid-column: 1; |
24 background-color: green; | 33 background-color: green; |
25 width: 50px; | 34 width: 50px; |
26 } | 35 } |
27 </style> | 36 </style> |
28 <p style="height: 20px">Tests invalidation on justify-items style change. Passes
if green bar is left aligned.</p> | 37 <p style="height: 20px">Tests invalidation on justify-items style change. Passes
if green bar is left aligned.</p> |
29 <div id="container"> | 38 <div id="container"> |
30 <div class="item"> | 39 <div class="item"> |
31 <div style="height: 50px"></div> | 40 <div style="height: 50px"></div> |
32 </div> | 41 </div> |
33 </div> | 42 </div> |
OLD | NEW |