layout/reftests/flexbox/flexbox-box-sizing-on-items-horiz-1a.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

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 horizontal 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 width: 100px;
michael@0 15 height: 30px;
michael@0 16 border: 1px solid black;
michael@0 17 float: left;
michael@0 18 margin: 2px;
michael@0 19 }
michael@0 20 .container > * {
michael@0 21 box-sizing: border-box;
michael@0 22 }
michael@0 23 .itemA {
michael@0 24 width: 30px;
michael@0 25 background: purple;
michael@0 26 border: 4px solid indigo;
michael@0 27 }
michael@0 28 .itemB {
michael@0 29 width: 50px;
michael@0 30 background: teal;
michael@0 31 border: 5px solid lightblue;
michael@0 32 }
michael@0 33 </style>
michael@0 34 </head>
michael@0 35 <body>
michael@0 36 <!-- FIRST ROW -->
michael@0 37 <!-- 1 inflexible item -->
michael@0 38 <div class="container">
michael@0 39 <div class="itemA"></div>
michael@0 40 </div>
michael@0 41 <!-- 1 flexible item -->
michael@0 42 <div class="container">
michael@0 43 <div class="itemA" style="flex-grow: 1"></div>
michael@0 44 </div>
michael@0 45
michael@0 46 <div style="clear: both"></div>
michael@0 47
michael@0 48 <!-- SECOND ROW -->
michael@0 49 <!-- 2 inflexible items -->
michael@0 50 <div class="container">
michael@0 51 <div class="itemA"></div>
michael@0 52 <div class="itemB"></div>
michael@0 53 </div>
michael@0 54 <!-- 2 flexible items -->
michael@0 55 <div class="container">
michael@0 56 <div class="itemA" style="flex-grow: 1"></div>
michael@0 57 <div class="itemB" style="flex-grow: 1"></div>
michael@0 58 </div>
michael@0 59 </body>
michael@0 60 </html>

mercurial