<!DOCTYPE html> <html><head> <title>CSS Regions: auto height region inside an auto height flexbox</title> <link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea"> <link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help"> <link href="http://www.w3.org/TR/css3-regions/#flow-from" rel="help"> <link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help"> <link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help"> <meta content="ahem" name="flags"> <meta content="Test that an auto height region inside a flex container with auto height is displayed properly. The flexbox should have the same height as the region." name="assert"> <link href="reference/autoheight-flexbox-003-ref.htm" rel="match"> <style> .content { font-family: Ahem; font-size: 20px; line-height: 1em; color: green; flow-into: flow; } .region { flow-from: flow; } .flex { display: flex; width: 100px; } .red { background-color: red; } </style> </head> <body> <ul> <li>Test passes if you see a green square.</li> <li>You shouldn't see any red.</li> </ul> <div class="content"> XXXXX<br> XXXXX<br> XXXXX<br> XXXXX<br> XXXXX </div> <div class="flex"> <div class="region"> <p class="red"> </p> </div> </div> </body></html>