Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../../resources/check-layout.js"></script> | |
| 5 <style> | |
| 6 .flex{ | |
| 7 width:600px; | |
| 8 display:flex; | |
| 9 height:100px; | |
| 10 background:gray; | |
| 11 margin-bottom:100px; | |
| 12 } | |
| 13 .item{ | |
| 14 width:150px; | |
| 15 background:yellow; | |
| 16 margin:10px; | |
| 17 flex:none; | |
| 18 } | |
| 19 .content1{ | |
| 20 width:100px; | |
| 21 height:150px; | |
| 22 background:red; | |
| 23 } | |
| 24 .content2{ | |
| 25 width:100px; | |
| 26 height:100px; | |
| 27 background:red; | |
| 28 } | |
| 29 .content3{ | |
| 30 width:100px; | |
| 31 height:50px; | |
| 32 background:red; | |
| 33 } | |
| 34 </style> | |
| 35 </head> | |
| 36 <body onload="checkLayout('.flex')"> | |
| 37 <p>Test for crbug.com/362848: Flex box word-wrap is not adhering to spec</p> | |
| 38 <div class="flex"> | |
| 39 <div class="item" id="item1" data-expected-height="80"><div class="content1" ></div></div> | |
| 40 <div class="item" id="item2" data-expected-height="80"><div class="content2" ></div></div> | |
| 41 <div class="item" id="item3" data-expected-height="80"><div class="content3" ></div></div> | |
| 42 </div> | |
| 43 | |
| 44 <div class="flex" style="flex-wrap:wrap;"> | |
| 45 <div class="item" id="item4" data-expected-height="80"><div class="content1" ></div></div> | |
| 46 <div class="item" id="item5" data-expected-height="80"><div class="content2" ></div></div> | |
| 47 <div class="item" id="item6" data-expected-height="80"><div class="content3" ></div></div> | |
| 48 </div> | |
| 49 | |
| 50 <div class="flex" style="flex-wrap:wrap;"> | |
|
tony
2014/06/10 16:30:21
There should be tests for column flexboxes and it
harpreet.sk
2014/06/11 08:13:16
Done.
| |
| 51 <div class="item" id="item7" data-expected-height="150"><div class="content1 "></div></div> | |
| 52 <div class="item" id="item8" data-expected-height="150"><div class="content2 "></div></div> | |
| 53 <div class="item" id="item9" data-expected-height="150"><div class="content3 "></div></div> | |
| 54 <div class="item" id="item10" data-expected-height="150"><div class="content 1"></div></div> | |
| 55 <div class="item" id="item11" data-expected-height="150"><div class="content 2"></div></div> | |
| 56 </div> | |
| 57 </body> | |
| 58 </html> | |
| OLD | NEW |