OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <script src="resources/text-based-repaint.js"></script> | 2 <script src="resources/text-based-repaint.js"></script> |
3 <script> | 3 <script> |
4 function repaintTest() { | 4 function repaintTest() { |
5 document.getElementById('container').style.alignContent = 'center'; | 5 document.getElementById('container').style.alignContent = 'center'; |
6 } | 6 } |
7 onload = runRepaintAndPixelTest; | 7 onload = runRepaintAndPixelTest; |
8 </script> | 8 </script> |
9 <style> | 9 <style> |
10 #container { | 10 #container { |
11 display: flex; | 11 display: flex; |
12 align-items: flex-start; | 12 align-items: flex-start; |
13 width: 200px; | 13 width: 200px; |
14 height: 300px; | 14 height: 300px; |
15 background-color: red; | 15 background-color: red; |
16 } | 16 } |
17 .item { | 17 .item { |
18 background-color: green; | 18 background-color: green; |
19 border: solid thin blue; | 19 border: solid thin blue; |
20 width: 100px; | 20 width: 100px; |
21 height: 300px; | 21 height: 300px; |
22 } | 22 } |
23 </style> | 23 </style> |
24 <p style="height: 20px">There should be no invalidations because align-content s
tyle change causes no visual change.</p> | 24 <p style="height: 20px">There should be no invalidations because align-content s
tyle change causes no visual change.</p> |
25 <div id="container"> | 25 <div id="container"> |
26 <div class="item"></div> | 26 <div class="item"></div> |
27 <div class="item"></div> | 27 <div class="item"></div> |
28 </div> | 28 </div> |
OLD | NEW |