layout/reftests/flexbox/flexbox-widget-flex-items-3.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/flexbox/flexbox-widget-flex-items-3.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,42 @@
     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 +<!--
    1.10 +    This testcase checks that, for any widgets that have a single valid size
    1.11 +    (and hence refuse to flex), we don't honor the "max-width" property
    1.12 +    when running the flex algorithm, just as we don't honor it outside
    1.13 +    of flexbox contexts.
    1.14 +-->
    1.15 +<html>
    1.16 +<head>
    1.17 +  <style>
    1.18 +    div.flexbox {
    1.19 +      display: flex;
    1.20 +      align-items: flex-start;
    1.21 +      background: lightgray;
    1.22 +      width: 400px;
    1.23 +      height: 40px;
    1.24 +      margin-bottom: 10px;
    1.25 +    }
    1.26 +    div.flexbox > * {
    1.27 +      max-width: 3px;
    1.28 +      outline: 1px dashed black;
    1.29 +      margin: 0;
    1.30 +      vertical-align: top;
    1.31 +    }
    1.32 +  </style>
    1.33 +</head>
    1.34 +<body>
    1.35 +  <div class="flexbox"><input type="button"></div>
    1.36 +  <div class="flexbox"><input type="checkbox"></div>
    1.37 +  <div class="flexbox"><input type="file"></div>
    1.38 +  <div class="flexbox"><input type="image"></div>
    1.39 +  <div class="flexbox"><input type="password"></div>
    1.40 +  <div class="flexbox"><input type="radio"></div>
    1.41 +  <div class="flexbox"><input type="reset"></div>
    1.42 +  <div class="flexbox"><input type="submit"></div>
    1.43 +  <div class="flexbox"><input type="text"></div>
    1.44 +</body>
    1.45 +</html>

mercurial