OLD | NEW |
| (Empty) |
1 <!-- Based on fast/repaint/justify-content-position-change.html --> | |
2 <!DOCTYPE HTML> | |
3 <script src="resources/paint-invalidation-test.js"></script> | |
4 <script> | |
5 function paintInvalidationTest() { | |
6 document.getElementById('container').style.justifyContent = 'flex-start'; | |
7 } | |
8 onload = runPaintInvalidationTest; | |
9 </script> | |
10 <style> | |
11 body { | |
12 margin: 0; | |
13 } | |
14 #container { | |
15 display: flex; | |
16 justify-content: center; | |
17 width: 200px; | |
18 height: 300px; | |
19 background-color: orange; | |
20 } | |
21 .item { | |
22 background-color: green; | |
23 border: solid thin blue; | |
24 width: 50px; | |
25 } | |
26 </style> | |
27 <p style="height: 20px">Tests invalidation on justify-content style change. Pass
es if only one big orange bar appear aligned to the box's right edge.</p> | |
28 <div id="container"> | |
29 <div class="item"> | |
30 <div style="height: 50px"></div> | |
31 </div> | |
32 <div class="item"> | |
33 <div style="height: 50px"></div> | |
34 </div> | |
35 </div> | |
OLD | NEW |