layout/reftests/w3c-css/submitted/flexbox/flexbox-overflow-horiz-1.html
author Daniel Holbert <dholbert@cs.stanford.edu>
Thu, 06 Jun 2013 20:37:11 -0700
changeset 145815 8e82f9384070dcd9f26135723e6155110e2b0cb1
parent 136329 layout/reftests/flexbox/flexbox-overflow-horiz-1.html@1d7b2eafeebcd7863173737b09a9d29a3c1e5813
child 145816 98b4083befbbf8a05ad783a8a0eab69e36531cf8
permissions -rw-r--r--
Bug 880137 part 2: Migrate most flexbox reftests to the flexbox directory in w3c-css folder. rs=dbaron

<!DOCTYPE html>
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<!-- This testcase checks that we correctly handle the "overflow" property on
     a horizontal flex container with overflowing contents. -->
<html>
<head>
  <style>
    .flexContainer {
      background: purple;
      display: flex;
      width: 70px;
      height: 70px;
      float: left;
      margin-right: 5px;
    }
    .bigItem {
      background: blue;
      height: 200px;
      flex: 3;
    }
    .smallItem {
      background: teal;
      margin-bottom: 10px;
      flex: 1;
    }
    .scroll { overflow: scroll }
    .auto   { overflow: auto   }
    .hidden { overflow: hidden }
  </style>
</head>
<body>
  <div class="flexContainer"><!-- (overflow un-set) -->
    <div class="bigItem"></div>
    <div class="smallItem"></div>
  </div>
  <div class="flexContainer hidden">
    <div class="bigItem"></div>
    <div class="smallItem"></div>
  </div>
  <div class="flexContainer scroll">
    <div class="bigItem"></div>
    <div class="smallItem"></div>
  </div>
  <div class="flexContainer auto">
    <div class="bigItem"></div>
    <div class="smallItem"></div>
  </div>
</body>
</html>