| <!DOCTYPE html> |
| <title>CSS Flexbox: auto-height with border and padding</title> |
| <link href="support/flexbox.css" rel="stylesheet"> |
| <link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#valdef-flex-direction-column"> |
| <link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#valdef-flex-direction-column-reverse"> |
| <link rel="match" href="reference/auto-height-column-with-border-and-padding-ref.html"> |
| Tests that auto-height column flexboxes with border and padding correctly size their height to their content. |
| <div class="flexbox column" style="border: 5px solid salmon; padding: 5px; overflow: scroll"> |
| <div class="flex-one-one-auto" style="min-height: 0"> |
| <div style="height: 50px; background-color: pink"> |
| <div> |
| </div> |