layout/reftests/w3c-css/submitted/flexbox/flexbox-overflow-horiz-3.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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 honor "justify-content" on a horizontal
     7      flex container that has "overflow:hidden".  We use a large flex item,
     8      large enough that it overflows the container, to be sure that
     9      "overflow: hidden" is actually applying. -->
    10 <html>
    11 <head>
    12   <title>CSS Test: Testing 'overflow' property on a horizontal flex container, with 'justify-content: space-around'</title>
    13   <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
    14   <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-containers">
    15   <link rel="match" href="flexbox-overflow-horiz-3-ref.html">
    16   <style>
    17     .flexContainer {
    18       background: purple;
    19       display: flex;
    20       justify-content: space-around;
    21       width: 70px;
    22       height: 70px;
    23       float: left;
    24       margin-right: 5px;
    25     }
    26     .bigItem {
    27       background: blue;
    28       width: 20px;
    29       height: 200px;
    30     }
    31     .smallItem {
    32       background: teal;
    33       width: 20px;
    34       height: 20px;
    35     }
    36     .hidden { overflow: hidden }
    37   </style>
    38 </head>
    39 <body>
    40   <div class="flexContainer"><!-- (overflow un-set) -->
    41     <div class="bigItem"></div>
    42     <div class="smallItem"></div>
    43   </div>
    44   <div class="flexContainer hidden">
    45     <div class="bigItem"></div>
    46     <div class="smallItem"></div>
    47   </div>
    48 </body>
    49 </html>

mercurial