OLD | NEW |
---|---|
1 <!DOCTYPE HTML> | |
Julien - ping for review
2015/05/19 17:59:17
Doctype removed?
jfernandez
2015/05/20 20:11:34
Mistake, got it back.
| |
2 <script src="resources/text-based-repaint.js"></script> | 1 <script src="resources/text-based-repaint.js"></script> |
3 <script> | 2 <script> |
4 function repaintTest() { | 3 function repaintTest() { |
5 document.getElementById('container').style.alignContent = 'stretch'; | 4 document.getElementById('container').style.alignContent = 'end'; |
6 } | 5 } |
7 onload = runRepaintTest; | 6 onload = runRepaintTest; |
8 </script> | 7 </script> |
9 <style> | 8 <style> |
10 body { | 9 body { |
11 margin: 0; | 10 margin: 0; |
12 } | 11 } |
13 #container { | 12 #container { |
14 display: flex; | 13 display: grid; |
15 align-content: space-around; | 14 grid-auto-columns: 200px; |
16 flex-flow: row wrap; | 15 grid-auto-rows: auto; |
16 grid-auto-flow: row; | |
17 align-content: start; | |
17 width: 200px; | 18 width: 200px; |
18 height: 300px; | 19 height: 300px; |
19 background-color: red; | 20 background-color: red; |
20 } | 21 } |
21 .item { | 22 .item { |
22 background-color: green; | 23 background-color: green; |
23 border: solid thin blue; | |
24 width: 200px; | |
25 } | 24 } |
26 </style> | 25 </style> |
27 <p style="height: 20px">Tests invalidation on align-content style change. Passes if there is no red.</p> | 26 <p style="height: 20px">Tests invalidation on align-content style change (positi on). Passes if the red half is on the top.</p> |
Julien - ping for review
2015/05/19 17:59:17
Red should mark failure, we should change the cond
jfernandez
2015/05/20 20:11:34
Done.
| |
28 <div id="container"> | 27 <div id="container"> |
29 <div class="item"> | 28 <div class="item"> |
30 <div style="height: 50px"></div> | 29 <div style="height: 50px"></div> |
31 </div> | 30 </div> |
32 <div class="item"> | 31 <div class="item"> |
33 <div style="height: 50px"></div> | 32 <div style="height: 50px"></div> |
34 </div> | 33 </div> |
34 <div class="item"> | |
35 <div style="height: 50px"></div> | |
36 </div> | |
35 </div> | 37 </div> |
OLD | NEW |