flexbox-min-height-auto-004-ref.html (1155B)
1 <!DOCTYPE html> 2 <!-- 3 Any copyright is dedicated to the Public Domain. 4 http://creativecommons.org/publicdomain/zero/1.0/ 5 --> 6 <html> 7 <head> 8 <meta charset="utf-8"> 9 <title>CSS Reftest Reference</title> 10 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> 11 <style> 12 .item { 13 /* Flex items have purple border: */ 14 border: 2px dotted purple; 15 margin-right: 2px; /* (Just for spacing things out, visually) */ 16 float: left; 17 } 18 19 .small { height: 26px; } 20 .big { height: 80px; } 21 22 .item > * { 23 /* Flex items' contents are gray & fixed-size: */ 24 background: gray; 25 width: 40px; 26 height: 80px; 27 } 28 29 .xvisible { overflow-x: visible; } 30 .xhidden { overflow-x: hidden; } 31 .xscroll { overflow-x: scroll; } 32 .xauto { overflow-x: auto; } 33 </style> 34 </head> 35 <body> 36 <div class="item big xvisible"><div></div></div> 37 <div class="item small xhidden"><div></div></div> 38 <div class="item small xscroll"><div></div></div> 39 <div class="item small xauto"><div></div></div> 40 </body> 41 </html>