webkit-box-anon-flex-items-1a.html (2244B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title> 5 Test for contiguous inline content getting wrapped in a single block, 6 inside of -webkit-box. 7 </title> 8 <style> 9 .container { 10 display: -webkit-box; 11 -webkit-box-pack: justify; 12 width: 300px; 13 border: 1px solid black; 14 font: 10px sans-serif; 15 margin-bottom: 10px; 16 } 17 .container > * { 18 background: lightgray; 19 } 20 </style> 21 </head> 22 <body> 23 <!-- The following containers each have a bunch of contiguous inline-level 24 content. In each case, all of the inline content ("a" through "z") should 25 get wrapped into a single anonymous block. --> 26 <div class="container"> 27 a 28 <i>i</i><img src="bogus"><img src="bogus" alt="alt"> 29 <canvas height="5" width="5"></canvas> 30 <video height="5" width="5"></video> 31 <div style="display:inline-block">ib</div> 32 <div style="display:inline-table">it</div> 33 z 34 <div>block</div> 35 <div>block</div> 36 </div> 37 38 <div class="container"> 39 <div>block</div> 40 a 41 <i>i</i><img src="bogus"><img src="bogus" alt="alt"> 42 <canvas height="5" width="5"></canvas> 43 <video height="5" width="5"></video> 44 <div style="display:inline-block">ib</div> 45 <div style="display:inline-table">it</div> 46 z 47 <div>block</div> 48 </div> 49 50 <div class="container"> 51 <div>block</div> 52 <div>block</div> 53 a 54 <i>i</i><img src="bogus"><img src="bogus" alt="alt"> 55 <canvas height="5" width="5"></canvas> 56 <video height="5" width="5"></video> 57 <div style="display:inline-block">ib</div> 58 <div style="display:inline-table">it</div> 59 z 60 </div> 61 62 <!-- This container tests how flex items are formed when table parts are placed 63 directly inside of a -webkit-box, alongside inline-level content. 64 (Table-fixup should produce an anonymous table around each contiguous run 65 of table-parts, and we should get an anonymous block around each piece of 66 raw text.) --> 67 <div class="container"> 68 a 69 <div style="display: table-cell">tc</div> 70 <div style="display: table-cell">tc</div> 71 b 72 <div style="display: table-row">tr</div> 73 <div style="display: table-cell">tc</div> 74 c 75 <div style="display: table-row">tr</div> 76 <div style="display: table-row-group">trg</div> 77 d 78 <table><tbody><tr><td>t</td></tr></tbody></table> 79 e 80 </div> 81 </body> 82 </html>