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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-overflow-horiz-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,56 @@
     1.4 +<!DOCTYPE html>
     1.5 +<!--
     1.6 +     Any copyright is dedicated to the Public Domain.
     1.7 +     http://creativecommons.org/publicdomain/zero/1.0/
     1.8 +-->
     1.9 +<!-- This testcase checks that we correctly handle the "overflow" property on
    1.10 +     a horizontal flex container. -->
    1.11 +<html>
    1.12 +<head>
    1.13 +  <title>CSS Test: Testing 'overflow' property on a horizontal flex container, with contents not overflowing</title>
    1.14 +  <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
    1.15 +  <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-containers">
    1.16 +  <link rel="match" href="flexbox-overflow-horiz-1-ref.html">
    1.17 +  <style>
    1.18 +    .flexContainer {
    1.19 +      background: purple;
    1.20 +      display: flex;
    1.21 +      width: 70px;
    1.22 +      height: 70px;
    1.23 +      float: left;
    1.24 +      margin-right: 5px;
    1.25 +    }
    1.26 +    .bigItem {
    1.27 +      background: blue;
    1.28 +      height: 200px;
    1.29 +      flex: 3;
    1.30 +    }
    1.31 +    .smallItem {
    1.32 +      background: teal;
    1.33 +      margin-bottom: 10px;
    1.34 +      flex: 1;
    1.35 +    }
    1.36 +    .scroll { overflow: scroll }
    1.37 +    .auto   { overflow: auto   }
    1.38 +    .hidden { overflow: hidden }
    1.39 +  </style>
    1.40 +</head>
    1.41 +<body>
    1.42 +  <div class="flexContainer"><!-- (overflow un-set) -->
    1.43 +    <div class="bigItem"></div>
    1.44 +    <div class="smallItem"></div>
    1.45 +  </div>
    1.46 +  <div class="flexContainer hidden">
    1.47 +    <div class="bigItem"></div>
    1.48 +    <div class="smallItem"></div>
    1.49 +  </div>
    1.50 +  <div class="flexContainer scroll">
    1.51 +    <div class="bigItem"></div>
    1.52 +    <div class="smallItem"></div>
    1.53 +  </div>
    1.54 +  <div class="flexContainer auto">
    1.55 +    <div class="bigItem"></div>
    1.56 +    <div class="smallItem"></div>
    1.57 +  </div>
    1.58 +</body>
    1.59 +</html>

mercurial