layout/reftests/flexbox/flexbox-widget-flex-items-1.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-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,46 @@
     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 flex containers honor those widgets (if any) in
    1.11 +    our system theme that have only a single valid size (and hence should
    1.12 +    refuse to flex).
    1.13 +
    1.14 +    e.g. in Gecko with a GTK theme, checkboxes and radio buttons have a single
    1.15 +    valid size, and any specified widths (and min/max-widths) will have no
    1.16 +    effect on their rendering (regardless of whether they're in a flex
    1.17 +    container).
    1.18 +-->
    1.19 +<html>
    1.20 +<head>
    1.21 +  <style>
    1.22 +    div.flexbox {
    1.23 +      display: flex;
    1.24 +      align-items: flex-start;
    1.25 +      border: 2px dotted lightgray;
    1.26 +      width: 400px;
    1.27 +      height: 40px;
    1.28 +      margin-bottom: 10px;
    1.29 +    }
    1.30 +    div.flexbox > * {
    1.31 +      flex: 1;
    1.32 +      outline: 1px dashed black;
    1.33 +      margin: 0;
    1.34 +      vertical-align: top;
    1.35 +    }
    1.36 +  </style>
    1.37 +</head>
    1.38 +<body>
    1.39 +  <div class="flexbox"><input type="button"></div>
    1.40 +  <div class="flexbox"><input type="checkbox"></div>
    1.41 +  <div class="flexbox"><input type="file"></div>
    1.42 +  <div class="flexbox"><input type="image"></div>
    1.43 +  <div class="flexbox"><input type="password"></div>
    1.44 +  <div class="flexbox"><input type="radio"></div>
    1.45 +  <div class="flexbox"><input type="reset"></div>
    1.46 +  <div class="flexbox"><input type="submit"></div>
    1.47 +  <div class="flexbox"><input type="text"></div>
    1.48 +</body>
    1.49 +</html>

mercurial