flexbox-min-height-auto-003-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 .yvisible { overflow-y: visible; } 30 .yhidden { overflow-y: hidden; } 31 .yscroll { overflow-y: scroll; } 32 .yauto { overflow-y: auto; } 33 </style> 34 </head> 35 <body> 36 <div class="item big yvisible"><div></div></div> 37 <div class="item small yhidden"><div></div></div> 38 <div class="item small yscroll"><div></div></div> 39 <div class="item small yauto"><div></div></div> 40 </body> 41 </html>