fieldset-00J-grid.html (763B)
1 <!DOCTYPE html> 2 <html class="reftest-paged"> 3 <head> 4 <title>CSS Test: fieldset fragmentation</title> 5 <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=471015"> 6 <meta name="flags" content="paged"> 7 <style> 8 @page { size:5in 3in; margin:0.5in; } 9 html,body { 10 color:black; background-color:white; font:0.5in/1 monospace; padding:0; margin:0; 11 } 12 fieldset { 13 display: grid; 14 grid-template-rows: repeat(3,auto); 15 padding: 0; 16 margin: 0; 17 border: 0; 18 border: 0.1in solid black; 19 break-inside: avoid; 20 } 21 legend { 22 padding: 0; 23 margin: 0; 24 width: 3em; 25 height: 1em; 26 box-sizing: border-box; 27 background: black; 28 } 29 </style> 30 </head> 31 <body> 32 <fieldset><legend></legend><x>A</x>B<x>C</x></fieldset> 33 </body> 34 </html>