OLD | NEW |
| (Empty) |
1 <!-- Based on fast/repaint/align-content-change.html --> | |
2 <!DOCTYPE HTML> | |
3 <script src="resources/paint-invalidation-test.js"></script> | |
4 <script> | |
5 function paintInvalidationTest() { | |
6 document.getElementById('container').style.alignContent = 'stretch'; | |
7 } | |
8 onload = runPaintInvalidationTest; | |
9 </script> | |
10 <style> | |
11 body { | |
12 margin: 0; | |
13 } | |
14 #container { | |
15 display: flex; | |
16 align-content: space-around; | |
17 flex-flow: row wrap; | |
18 width: 200px; | |
19 height: 300px; | |
20 background-color: red; | |
21 } | |
22 .item { | |
23 background-color: green; | |
24 border: solid thin blue; | |
25 width: 200px; | |
26 } | |
27 </style> | |
28 <p style="height: 20px">Tests invalidation on align-content style change. Passes
if there is no red.</p> | |
29 <div id="container"> | |
30 <div class="item"> | |
31 <div style="height: 50px"></div> | |
32 </div> | |
33 <div class="item"> | |
34 <div style="height: 50px"></div> | |
35 </div> | |
36 </div> | |
OLD | NEW |