layout/reftests/w3c-css/submitted/flexbox/flexbox-abspos-child-1b.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-abspos-child-1b.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,55 @@
     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 Test: Testing that "min-width", "max-width", "min-height", and "max-height" are applied on absolutely positioned children of a vertical flex container</title>
    1.12 +  <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
    1.13 +  <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#abspos-items">
    1.14 +  <link rel="match" href="flexbox-abspos-child-1-ref.html">
    1.15 +  <meta charset="utf-8">
    1.16 +  <style>
    1.17 +    .flexContainer {
    1.18 +      display: flex;
    1.19 +      flex-direction: column;
    1.20 +      height: 10px;
    1.21 +      width: 10px;
    1.22 +      background: purple;
    1.23 +      margin-bottom: 15px;
    1.24 +      position: relative;
    1.25 +    }
    1.26 +    .absPos {
    1.27 +      position: absolute;
    1.28 +      background: teal;
    1.29 +    }
    1.30 +    .testMinWidth {
    1.31 +      width: 10px;
    1.32 +      height: 20px;
    1.33 +      min-width: 20px;
    1.34 +    }
    1.35 +    .testMaxWidth {
    1.36 +      width: 50px;
    1.37 +      height: 20px;
    1.38 +      max-width: 20px;
    1.39 +    }
    1.40 +    .testMinHeight {
    1.41 +      width: 20px;
    1.42 +      height: 10px;
    1.43 +      min-height: 20px;
    1.44 +    }
    1.45 +    .testMaxHeight {
    1.46 +      width: 20px;
    1.47 +      height: 50px;
    1.48 +      max-height: 20px;
    1.49 +    }
    1.50 +  </style>
    1.51 +</head>
    1.52 +<body>
    1.53 +  <div class="flexContainer"><div class="absPos testMinWidth"></div></div>
    1.54 +  <div class="flexContainer"><div class="absPos testMaxWidth"></div></div>
    1.55 +  <div class="flexContainer"><div class="absPos testMinHeight"></div></div>
    1.56 +  <div class="flexContainer"><div class="absPos testMaxHeight"></div></div>
    1.57 +</body>
    1.58 +</html>

mercurial