layout/reftests/w3c-css/submitted/flexbox/flexbox-overflow-horiz-5-ref.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-5-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,50 @@
     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 +<html>
    1.10 +<head>
    1.11 + <title>CSS Reftest Reference</title>
    1.12 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
    1.13 +  <style>
    1.14 +    .flexContainer {
    1.15 +      background: purple;
    1.16 +      display: flex;
    1.17 +      flex-wrap: wrap;
    1.18 +      align-content: space-around;
    1.19 +      width: 70px;
    1.20 +      height: 70px;
    1.21 +      float: left;
    1.22 +      margin-right: 5px;
    1.23 +    }
    1.24 +    .bigItem {
    1.25 +      background: blue;
    1.26 +      flex: none; /* prevent shrinking (so we can intentionally overflow) */
    1.27 +      width: 72px;
    1.28 +      height: 20px;
    1.29 +    }
    1.30 +    .smallItem {
    1.31 +      background: teal;
    1.32 +      width: 20px;
    1.33 +      height: 20px;
    1.34 +    }
    1.35 +    .hidden > .bigItem {
    1.36 +      /* To match the testcase's "overflow:hidden"-cropped flex item, we
    1.37 +         just use a smaller width that exactly fits our container (and
    1.38 +         doesn't overflow). */
    1.39 +      width: 70px;
    1.40 +    }
    1.41 +  </style>
    1.42 +</head>
    1.43 +<body>
    1.44 +  <div class="flexContainer"><!-- (overflow un-set) -->
    1.45 +    <div class="bigItem"></div>
    1.46 +    <div class="smallItem"></div>
    1.47 +  </div>
    1.48 +  <div class="flexContainer hidden">
    1.49 +    <div class="bigItem"></div>
    1.50 +    <div class="smallItem"></div>
    1.51 +  </div>
    1.52 +</body>
    1.53 +</html>

mercurial