grid-max-sizing-flex-003-ref.html (2884B)
1 <!DOCTYPE HTML> 2 <!-- 3 Any copyright is dedicated to the Public Domain. 4 http://creativecommons.org/publicdomain/zero/1.0/ 5 --> 6 <html><head> 7 <meta charset="utf-8"> 8 <title>CSS Grid Test: Testing track flex max-sizing</title> 9 <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1151212"> 10 <style type="text/css"> 11 body,html { color:black; background:white; font-size:8px; line-height:10px; padding:0; margin:0; } 12 13 body { width: 800px; } 14 .grid { 15 display: block; 16 border: 3px dashed blue; 17 width: 794px; 18 } 19 20 .c1 { min-height:40px; margin-top:1px; } 21 .r1 { min-height:70px; margin-top:38px; } 22 .c3 { min-height:0; margin-top:138px; } 23 24 .gc1 { grid-row: 1 / span 2; min-height:40px; } 25 .gr1 { grid-row: 2 / span 3; min-height:70px; } 26 .gc3 { grid-row: 3 / span 1; min-height:0; } 27 28 span { 29 display: block; 30 background: gray; 31 border-style: solid; 32 border-height: 1px 3px 5px 7px; 33 padding: 1px 3px; 34 margin: 1px 5px; 35 justify-self: flex-start; 36 } 37 38 td { 39 vertical-align:top; 40 } 41 x { display:inline-block; height:10px; width:18px; } 42 </style> 43 </head> 44 <body> 45 46 <div class="grid"> 47 <table cellpadding="0" cellspacing="0"><tr> 48 <td><span class="c1" style="height:43px"><x> </x></span> 49 <td><span class="r1" style="margin-top:28px;margin-left:5px"><x> </x></span> 50 </tr></table> 51 </div> 52 53 <div class="grid"> 54 <table cellpadding="0" cellspacing="0"><tr> 55 <td><span class="c1" style="display:inline-block; margin-left:5px; height:43px"><x> </x></span> 56 <td rowspan="2"><span class="r1" style="margin-left:5px; margin-top:27px;"><x> </x></span> 57 <tr><td><span class="c3" style="margin-left:5px; margin-top:-52px; height:17px"><x> </x></span> 58 </tr></table> 59 </div> 60 61 <div class="grid"> 62 <table cellpadding="0" cellspacing="0"><tr> 63 <td><span class="c1" style="height:44px"><x> </x></span> 64 <td><span class="r1" style="margin-top:28px;"><x> </x></span> 65 <td><span class="r1" style="margin-top:28px;"><x> </x></span> 66 <td><span class="r1" style="margin-top:28px;"><x> </x></span> 67 </tr></table> 68 </div> 69 70 <div class="grid" style="height:100px;"> 71 <table cellpadding="0" cellspacing="0"><tr> 72 <td><span class="c1" style="height:40px"><x> </x></span> 73 <td><span class="r1" style="margin-top:26px; min-height:65px;"><x> </x></span> 74 <td><span class="r1" style="margin-top:26px; min-height:65px"><x> </x></span> 75 <td><span class="r1" style="margin-top:26px; min-height:65px"><x> </x></span> 76 </tr></table> 77 </div> 78 79 <div class="grid"> 80 <table cellpadding="0" cellspacing="0"><tr> 81 <td><span class="c1" style="display:inline-block; margin-left:5px; height:40px"><x> </x></span> 82 <td rowspan="2"><span class="r1" style="margin-left:5px; margin-top:28px;"><x> </x></span> 83 <tr><td><span class="c3" style="margin-left:5px; margin-top:-53px; height:17px"><x> </x></span> 84 </tr></table> 85 </div> 86 87 </body> 88 </html>