line-names-002.html (909B)
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: subgrid item using line names from outer grid</title> 9 <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com"> 10 <link rel="help" href="https://drafts.csswg.org/css-grid-2"> 11 <link rel="match" href="line-names-002-ref.html"> 12 <style> 13 html,body { 14 color:black; background-color:white; font:24px/1 monospace; padding:0; margin:0; 15 } 16 17 .grid { 18 display: grid; 19 grid: auto / repeat(10, 10px) repeat(10, [a] 10px) [a]; 20 padding: 20px 10px; 21 } 22 23 .subgrid { 24 display: grid; 25 grid: 50px / subgrid; 26 grid-column: span 10; 27 } 28 29 x { background: grey; } 30 31 </style> 32 </head> 33 <body> 34 35 <div class="grid"> 36 <div class="subgrid"> 37 <x style="grid-column: span a / a 8"></x> 38 </div> 39 </div> 40 41 </body> 42 </html>