layout/reftests/w3c-css/submitted/flexbox/flexbox-overflow-vert-1.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <!DOCTYPE html>
     2 <!--
     3      Any copyright is dedicated to the Public Domain.
     4      http://creativecommons.org/publicdomain/zero/1.0/
     5 -->
     6 <!-- This testcase checks that we correctly handle the "overflow" property on
     7      a vertical flex container with overflowing contents. -->
     8 <html>
     9 <head>
    10   <title>CSS Test: Testing 'overflow' property on a vertical flex container</title>
    11   <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
    12   <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-containers">
    13   <link rel="match" href="flexbox-overflow-vert-1-ref.html">
    14   <style>
    15     .flexContainer {
    16       background: purple;
    17       display: flex;
    18       flex-direction: column;
    19       width: 70px;
    20       height: 70px;
    21       margin-bottom: 5px;
    22     }
    23     .bigItem {
    24       background: blue;
    25       width: 200px;
    26       flex: 3;
    27     }
    28     .smallItem {
    29       background: teal;
    30       margin-right: 10px;
    31       flex: 1;
    32     }
    33     .scroll { overflow: scroll }
    34     .auto   { overflow: auto   }
    35     .hidden { overflow: hidden }
    36   </style>
    37 </head>
    38 <body>
    39   <div class="flexContainer"><!-- (overflow un-set) -->
    40     <div class="bigItem"></div>
    41     <div class="smallItem"></div>
    42   </div>
    43   <div class="flexContainer hidden">
    44     <div class="bigItem"></div>
    45     <div class="smallItem"></div>
    46   </div>
    47   <div class="flexContainer scroll">
    48     <div class="bigItem"></div>
    49     <div class="smallItem"></div>
    50   </div>
    51   <div class="flexContainer auto">
    52     <div class="bigItem"></div>
    53     <div class="smallItem"></div>
    54   </div>
    55 </body>
    56 </html>

mercurial