layout/reftests/flexbox/flexbox-box-sizing-on-items-vert-1b.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

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 Test: Testing a vertical flex container with box-sizing:border-box on its flex items</title>
michael@0 9 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
michael@0 10 <meta charset="utf-8">
michael@0 11 <style>
michael@0 12 .container {
michael@0 13 display: flex;
michael@0 14 flex-direction: column;
michael@0 15 width: 30px;
michael@0 16 height: 100px;
michael@0 17 border: 1px solid black;
michael@0 18 float: left;
michael@0 19 margin: 2px;
michael@0 20 }
michael@0 21 .container > * {
michael@0 22 box-sizing: border-box;
michael@0 23 }
michael@0 24 .itemA {
michael@0 25 flex-basis: 30px;
michael@0 26 background: purple;
michael@0 27 border: 4px solid indigo;
michael@0 28 }
michael@0 29 .itemB {
michael@0 30 flex-basis: 50px;
michael@0 31 background: teal;
michael@0 32 border: 5px solid lightblue;
michael@0 33 }
michael@0 34 </style>
michael@0 35 </head>
michael@0 36 <body>
michael@0 37 <!-- FIRST ROW -->
michael@0 38 <!-- 1 inflexible item -->
michael@0 39 <div class="container">
michael@0 40 <div class="itemA"></div>
michael@0 41 </div>
michael@0 42 <!-- 1 flexible item -->
michael@0 43 <div class="container">
michael@0 44 <div class="itemA" style="flex-grow: 1"></div>
michael@0 45 </div>
michael@0 46
michael@0 47 <div style="clear: both"></div>
michael@0 48
michael@0 49 <!-- SECOND ROW -->
michael@0 50 <!-- 2 inflexible items -->
michael@0 51 <div class="container">
michael@0 52 <div class="itemA"></div>
michael@0 53 <div class="itemB"></div>
michael@0 54 </div>
michael@0 55 <!-- 2 flexible items -->
michael@0 56 <div class="container">
michael@0 57 <div class="itemA" style="flex-grow: 1"></div>
michael@0 58 <div class="itemB" style="flex-grow: 1"></div>
michael@0 59 </div>
michael@0 60 </body>
michael@0 61 </html>

mercurial