flex-column-grow.html (795B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>margin-trim: flex-column-grow</title> 5 <link rel="author" href="mailto:sammy.gill@apple.com"> 6 <link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-flex"> 7 <link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html"> 8 <meta name="assert" content="items should grow to take up the space made available by trimming margins"> 9 <style> 10 flexbox { 11 display: flex; 12 width: min-content; 13 height: 100px; 14 flex-direction: column; 15 margin-trim: block; 16 } 17 item { 18 display: block; 19 width: 100px; 20 height: 50px; 21 margin-block: 25px; 22 flex: 1 0 auto; 23 background-color: green; 24 } 25 </style> 26 </head> 27 <body> 28 <p>Test passes if there is a filled green square.</p> 29 <flexbox> 30 <item></item> 31 </flexbox> 32 </body> 33 </html>