layout/reftests/w3c-css/submitted/flexbox/flexbox-overflow-horiz-2-ref.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <!DOCTYPE html>
michael@0 2 <!--
michael@0 3 Any copyright is dedicated to the Public Domain.
michael@0 4 http://creativecommons.org/publicdomain/zero/1.0/
michael@0 5 -->
michael@0 6 <html>
michael@0 7 <head>
michael@0 8 <title>CSS Reftest Reference</title>
michael@0 9 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
michael@0 10 <style>
michael@0 11 .flexContainer {
michael@0 12 background: purple;
michael@0 13 display: flex;
michael@0 14 align-items: center;
michael@0 15 width: 70px;
michael@0 16 height: 70px;
michael@0 17 float: left;
michael@0 18 margin-right: 5px;
michael@0 19 }
michael@0 20 .bigItem {
michael@0 21 background: blue;
michael@0 22 height: 10px;
michael@0 23 /* Tall border (taller than our container): */
michael@0 24 border: solid coral;
michael@0 25 border-width: 50px 2px;
michael@0 26 flex: 3;
michael@0 27 }
michael@0 28 .smallItem {
michael@0 29 background: teal;
michael@0 30 height: 20px;
michael@0 31 flex: 1;
michael@0 32 }
michael@0 33 .hidden > .bigItem {
michael@0 34 /* To match the testcase's "overflow:hidden"-cropped flex item, we
michael@0 35 just use a smaller border that exactly fits our container (and
michael@0 36 doesn't overflow). */
michael@0 37 border-width: 30px 2px;
michael@0 38 }
michael@0 39 </style>
michael@0 40 </head>
michael@0 41 <body>
michael@0 42 <div class="flexContainer"><!-- (overflow un-set) -->
michael@0 43 <div class="bigItem"></div>
michael@0 44 <div class="smallItem"></div>
michael@0 45 </div>
michael@0 46 <div class="flexContainer hidden">
michael@0 47 <div class="bigItem"></div>
michael@0 48 <div class="smallItem"></div>
michael@0 49 </div>
michael@0 50 </body>
michael@0 51 </html>

mercurial