flexbox-min-width-auto-003-ref.html (1133B)
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-bottom: 2px; /* (Just for spacing things out, visually) */ 16 } 17 18 .small { width: 26px; } 19 .big { width: 80px; } 20 21 .item > * { 22 /* Flex items' contents are gray & fixed-size: */ 23 background: gray; 24 height: 40px; 25 width: 80px; 26 } 27 28 .xvisible { overflow-x: visible; } 29 .xhidden { overflow-x: hidden; } 30 .xscroll { overflow-x: scroll; } 31 .xauto { overflow-x: auto; } 32 </style> 33 </head> 34 <body> 35 <div class="item big xvisible"><div></div></div> 36 <div class="item small xhidden"><div></div></div> 37 <div class="item small xscroll"><div></div></div> 38 <div class="item small xauto"><div></div></div> 39 </body> 40 </html>