layout/reftests/flexbox/pagination/flexbox-unbreakable-child-1a-wrap.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.

     1 <!DOCTYPE html>
     2 <!-- Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/publicdomain/zero/1.0/ -->
     4 <!-- Testcase for how we fragment a flex container with a single unbreakable
     5      child, with the flex container having "flex-direction: row" and
     6      "flex-wrap: wrap".
     7 -->
     8 <html>
     9   <head>
    10     <style>
    11     .multicol {
    12       height: 10px;
    13       width: 100px;
    14       -moz-column-width: 20px;
    15       -moz-column-fill: auto;
    16       border: 2px solid orange;
    17       margin-bottom: 15px; /* (just for spacing between testcases) */
    18     }
    19     .flexContainer {
    20       display: flex;
    21       flex-direction: row;
    22       flex-wrap: wrap;
    23       background: teal;
    24       border: 1px dashed black;
    25     }
    26     .item {
    27       width: 100%;
    28       height: 20px;
    29     }
    30     </style>
    31   </head>
    32   <body>
    33     <!-- auto-height container: -->
    34     <div class="multicol">
    35       <div class="flexContainer">
    36         <img src="" class="item">
    37       </div>
    38     </div>
    40     <!-- fixed-height container, smaller than available height: -->
    41     <div class="multicol">
    42       <div class="flexContainer" style="height: 8px">
    43         <img src="" class="item">
    44       </div>
    45     </div>
    47     <!-- fixed-height container, between available height and child height: -->
    48     <div class="multicol">
    49       <div class="flexContainer" style="height: 15px">
    50         <img src="" class="item">
    51       </div>
    52     </div>
    54     <!-- fixed-height container, same as child height: -->
    55     <div class="multicol">
    56       <div class="flexContainer" style="height: 20px">
    57         <img src="" class="item">
    58       </div>
    59     </div>
    61     <!-- fixed-height container, larger than child height: -->
    62     <div class="multicol">
    63       <div class="flexContainer" style="height: 24px">
    64         <img src="" class="item">
    65       </div>
    66     </div>
    67   </body>
    68 </html>

mercurial