stretched-child-in-nested-flexbox-002.html (1018B)
1 <!DOCTYPE html> 2 <html> 3 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#propdef-align-content" /> 4 <title>css-flexbox: Tests nested flex item with `align-items: stretch`</title> 5 <link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com"> 6 <link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com"> 7 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#align-items-property"> 8 <link rel="match" href="/css/reference/ref-filled-green-100px-square.xht"> 9 <meta name="assert" content="This checks that a stretched flex item in a multi-line nested flexbox streches to the size of the parent flex container's line."> 10 <body> 11 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 12 <div style="display: flex;"> 13 <div style="width: 50px; height: 100px; background: green;"></div> 14 <div style="display: flex; flex-wrap: wrap"> 15 <div style="background: green; width: 50px;"></div> 16 </div> 17 </div> 18 </body> 19 </html>