layout/reftests/w3c-css/submitted/flexbox/flexbox-justify-content-vert-3.xhtml

Thu, 15 Jan 2015 21:13:52 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:13:52 +0100
branch
TOR_BUG_9701
changeset 12
7540298fafa1
permissions
-rw-r--r--

Remove forgotten relic of ABI crash risk averse overloaded method change.

     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3      Any copyright is dedicated to the Public Domain.
     4      http://creativecommons.org/publicdomain/zero/1.0/
     5 -->
     6 <!-- Testcase with a series of vertical flex containers testing each possible
     7      value of the 'justify-content' property, and with each individual
     8      flex item being larger than the flexbox itself (so that there isn't any
     9      packing space available).
    11        * For 'flex-start'/'space-between', we should overflow on the end
    12          (bottom) side.
    13        * For 'flex-end', we should overflow on the start (top) side.
    14        * For 'center'/'space-around', we should overflow equally on both sides.
    15 -->
    16 <html xmlns="http://www.w3.org/1999/xhtml">
    17   <head>
    18     <title>CSS Test: Testing 'justify-content' in a vertical flex container, and its effects on flex items that overflow</title>
    19     <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
    20     <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#justify-content-property"/>
    21     <link rel="match" href="flexbox-justify-content-vert-3-ref.xhtml"/>
    22     <style>
    23       body { margin-top: 100px; } /* So we can see top-overflowed stuff */
    24       div.flexbox {
    25         height: 30px;
    26         display: flex;
    27         flex-direction: column;
    28         margin-right: 2px;
    29         float: left;
    30       }
    31       div.a {
    32         width: 20px;
    33         flex: 0 0 35px;
    34         background: lightgreen;
    35       }
    36       div.b {
    37         width: 20px;
    38         flex: 0 0 40px;
    39         background: pink;
    40       }
    41       div.c {
    42         width: 20px;
    43         flex: 0 0 45px;
    44         background: orange;
    45       }
    46     </style>
    47   </head>
    48   <body>
    50     <!-- default (start) -->
    51     <div class="flexbox">
    52       <div class="a"/>
    53     </div>
    54     <div class="flexbox">
    55       <div class="a"/><div class="b"></div>
    56     </div>
    57     <div class="flexbox">
    58       <div class="a"/><div class="b"/><div class="c"/>
    59     </div>
    61     <!-- flex-start -->
    62     <div class="flexbox" style="justify-content: flex-start">
    63       <div class="a"/>
    64     </div>
    65     <div class="flexbox" style="justify-content: flex-start">
    66       <div class="a"/><div class="b"/>
    67     </div>
    68     <div class="flexbox" style="justify-content: flex-start">
    69       <div class="a"/><div class="b"/><div class="c"/>
    70     </div>
    72     <!-- flex-end -->
    73     <div class="flexbox" style="justify-content: flex-end">
    74       <div class="a"/>
    75     </div>
    76     <div class="flexbox" style="justify-content: flex-end">
    77       <div class="a"/><div class="b"/>
    78     </div>
    79     <div class="flexbox" style="justify-content: flex-end">
    80       <div class="a"/><div class="b"/><div class="c"/>
    81     </div>
    83     <!-- center -->
    84     <div class="flexbox" style="justify-content: center">
    85       <div class="a"/>
    86     </div>
    87     <div class="flexbox" style="justify-content: center">
    88       <div class="a"/><div class="b"/>
    89     </div>
    90     <div class="flexbox" style="justify-content: center">
    91       <div class="a"/><div class="b"/><div class="c"/>
    92     </div>
    94     <!-- space-between -->
    95     <div class="flexbox" style="justify-content: space-between">
    96       <div class="a"/>
    97     </div>
    98     <div class="flexbox" style="justify-content: space-between">
    99       <div class="a"/><div class="b"/>
   100     </div>
   101     <div class="flexbox" style="justify-content: space-between">
   102       <div class="a"/><div class="b"/><div class="c"/>
   103     </div>
   105     <!-- space-around -->
   106     <div class="flexbox" style="justify-content: space-around">
   107       <div class="a"/>
   108     </div>
   109     <div class="flexbox" style="justify-content: space-around">
   110       <div class="a"/><div class="b"/>
   111     </div>
   112     <div class="flexbox" style="justify-content: space-around">
   113       <div class="a"/><div class="b"/><div class="c"/>
   114     </div>
   116   </body>
   117 </html>

mercurial