1 <!-- Based on fast/repaint/justify-items-legacy-change.html -->
3 <script src=
"resources/paint-invalidation-test.js"></script>
5 window
.expectedPaintInvalidationObjects
= [
7 "LayoutBlockFlow DIV class='item1'",
9 "LayoutBlockFlow DIV class='item2'",
10 "LayoutGrid DIV id='container'",
11 "LayoutBlockFlow DIV id='parentContainer'",
12 "LayoutBlockFlow DIV id='parentContainer'",
13 "LayoutGrid DIV id='container'",
14 "LayoutBlockFlow DIV class='item1'",
15 "LayoutBlockFlow DIV",
16 "LayoutBlockFlow DIV class='item2'",
17 "LayoutBlockFlow DIV",
19 function paintInvalidationTest() {
20 document
.getElementById('parentContainer').style
.justifyItems
= 'legacy center';
22 onload
= runPaintInvalidationTest
;
29 justify-items: center;
30 background-color: orange;
37 grid:
100px
100px /
150px
150px;
40 background-color: red;
45 background-color: green;
46 border: solid thin blue;
52 background-color: green;
53 border: solid thin blue;
56 <p style=
"height: 20px">Tests invalidation on justify-items style change (legacy value). Passes if green bars are centerd inside their red container.
</p>
57 <div id=
"parentContainer">
60 <div style=
"height: 50px"></div>
63 <div style=
"height: 50px"></div>