line-names-011.html (1297B)
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 line names do not apply to non-subgrids</title> 9 <link rel="author" title="Kurt Catti-Schmidt" href="mailto:kschmi@microsoft.com"> 10 <link rel="help" href="https://drafts.csswg.org/css-grid-2"> 11 <link rel="match" href="line-names-011-ref.html"> 12 <style> 13 html,body { 14 color:black; background-color:white; font:12px/1 monospace; padding:0; margin:0; 15 } 16 17 div > div { background: grey; grid-column:2 / span 2; } 18 19 i { 20 grid-row: 1; 21 counter-increment: i; 22 } 23 i::before { content: counter(i, decimal); } 24 25 x { background: silver; } 26 </style> 27 </head> 28 <body> 29 30 <div style="display:grid; grid-template-columns: subgrid [a] [b] [c] [d];"> 31 <i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i> 32 <x style="grid-column: a / d">x</x> 33 </div> 34 35 <div style="display:grid; grid-template-columns: 'auto [a] auto [b]';"> 36 <i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i> 37 <div style="display:grid; grid:subgrid [c] [d] [d] [e] / auto; "> 38 <x style="grid-column: c">x</x> 39 </div> 40 </div> 41 </body> 42 </html>