independent-formatting-context-ref.html (1014B)
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>Reference: subgrid disabled if grid item establishes independent formatting context</title> 9 <link rel="author" title="Matt Woodrow" href="https://bugs.webkit.org/show_bug.cgi?id=237692"> 10 <link rel="help" href="https://drafts.csswg.org/css-grid-2/#subgrid-listing"> 11 <style> 12 13 html,body { 14 font:16px/1 monospace; padding:0; margin:0; line-height: 0; 15 } 16 17 .grid { 18 display: inline-block; 19 background-color: green; 20 width: 100px; 21 height: 100px; 22 margin-right: 20px; 23 margin-bottom: 20px; 24 vertical-align: top; 25 } 26 27 </style> 28 </head> 29 <body> 30 31 <div class="grid"> 32 </div> 33 34 <div class="grid"> 35 </div> 36 37 <div class="grid"> 38 </div> 39 40 <div class="grid"> 41 </div> 42 43 <div class="grid"> 44 </div> 45 46 <div class="grid"> 47 </div> 48 49 <div class="grid"> 50 </div> 51 52 <div class="grid"> 53 </div> 54 55 <div class="grid"> 56 </div> 57 58 <div class="grid"> 59 </div> 60 </body> 61 </html>