layout/reftests/flexbox/pagination/flexbox-empty-2a.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/flexbox/pagination/flexbox-empty-2a.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,138 @@
     1.4 +<!DOCTYPE html>
     1.5 +<!-- Any copyright is dedicated to the Public Domain.
     1.6 +     http://creativecommons.org/publicdomain/zero/1.0/ -->
     1.7 +<!-- Testcase for how we fragment an empty fixed-height flex container, with
     1.8 +     margin/border/padding that are larger than the available height,
     1.9 +     and with the flex container having "flex-direction: row".
    1.10 +-->
    1.11 +<html>
    1.12 +  <head>
    1.13 +    <style>
    1.14 +    .multicol {
    1.15 +      height: 10px;
    1.16 +      width: 100px;
    1.17 +      -moz-column-width: 20px;
    1.18 +      -moz-column-fill: auto;
    1.19 +      border: 2px solid orange;
    1.20 +      margin-bottom: 2px;
    1.21 +    }
    1.22 +    .flexContainer {
    1.23 +      display: flex;
    1.24 +      flex-direction: row;
    1.25 +      background: teal;
    1.26 +      /* border-width is 0 by default; some sub-testcases will increase it. */
    1.27 +      border: 0 dashed black;
    1.28 +    }
    1.29 +    </style>
    1.30 +  </head>
    1.31 +  <body>
    1.32 +    <!-- MARGIN LARGER THAN AVAILABLE HEIGHT -->
    1.33 +    <!-- =================================== -->
    1.34 +    <!-- margin-top is the available height: -->
    1.35 +    <div class="multicol">
    1.36 +      <div class="flexContainer" style="height: 8px;
    1.37 +                                        margin-top: 10px"></div>
    1.38 +    </div>
    1.39 +
    1.40 +    <!-- margin-top is larger than available height: -->
    1.41 +    <div class="multicol">
    1.42 +      <div class="flexContainer" style="height: 8px;
    1.43 +                                        margin-top: 11px"></div>
    1.44 +    </div>
    1.45 +
    1.46 +    <!-- margin-bottom is exactly the available height: -->
    1.47 +    <div class="multicol">
    1.48 +      <div class="flexContainer" style="height: 8px;
    1.49 +                                        margin-bottom: 10px"></div>
    1.50 +    </div>
    1.51 +
    1.52 +    <!-- margin-bottom is larger than available height: -->
    1.53 +    <div class="multicol">
    1.54 +      <div class="flexContainer" style="height: 8px;
    1.55 +                                        margin-bottom: 11px"></div>
    1.56 +    </div>
    1.57 +
    1.58 +    <!-- BORDER LARGER THAN AVAILABLE HEIGHT -->
    1.59 +    <!-- =================================== -->
    1.60 +    <!-- border-top-width is the available height: -->
    1.61 +    <div class="multicol">
    1.62 +      <div class="flexContainer" style="height: 8px;
    1.63 +                                        border-top-width: 10px"></div>
    1.64 +    </div>
    1.65 +
    1.66 +    <!-- border-top-width is larger than available height: -->
    1.67 +    <div class="multicol">
    1.68 +      <div class="flexContainer" style="height: 8px;
    1.69 +                                        border-top-width: 11px"></div>
    1.70 +    </div>
    1.71 +
    1.72 +    <!-- border-bottom-width is exactly the available height: -->
    1.73 +    <div class="multicol">
    1.74 +      <div class="flexContainer" style="height: 8px;
    1.75 +                                        border-bottom-width: 10px"></div>
    1.76 +    </div>
    1.77 +
    1.78 +    <!-- border-bottom-width is larger than available height: -->
    1.79 +    <div class="multicol">
    1.80 +      <div class="flexContainer" style="height: 8px;
    1.81 +                                        border-bottom-width: 11px"></div>
    1.82 +    </div>
    1.83 +
    1.84 +    <!-- PADDING LARGER THAN AVAILABLE HEIGHT -->
    1.85 +    <!-- ==================================== -->
    1.86 +    <!-- padding-top is the available height: -->
    1.87 +    <div class="multicol">
    1.88 +      <div class="flexContainer" style="height: 8px;
    1.89 +                                        padding-top: 10px"></div>
    1.90 +    </div>
    1.91 +
    1.92 +    <!-- padding-top is larger than available height: -->
    1.93 +    <div class="multicol">
    1.94 +      <div class="flexContainer" style="height: 8px;
    1.95 +                                        padding-top: 11px"></div>
    1.96 +    </div>
    1.97 +
    1.98 +    <!-- padding-bottom is exactly the available height: -->
    1.99 +    <div class="multicol">
   1.100 +      <div class="flexContainer" style="height: 8px;
   1.101 +                                        padding-bottom: 10px"></div>
   1.102 +    </div>
   1.103 +
   1.104 +    <!-- padding-bottom is larger than available height: -->
   1.105 +    <div class="multicol">
   1.106 +      <div class="flexContainer" style="height: 8px;
   1.107 +                                        padding-bottom: 11px"></div>
   1.108 +    </div>
   1.109 +
   1.110 +    <!-- BORDER+PADDING LARGER THAN AVAILABLE HEIGHT -->
   1.111 +    <!-- =========================================== -->
   1.112 +    <!-- border+padding-top is the available height: -->
   1.113 +    <div class="multicol">
   1.114 +      <div class="flexContainer" style="height: 8px;
   1.115 +                                        border-top: 5px;
   1.116 +                                        padding-top: 5px"></div>
   1.117 +    </div>
   1.118 +
   1.119 +    <!-- padding-top is larger than available height: -->
   1.120 +    <div class="multicol">
   1.121 +      <div class="flexContainer" style="height: 8px;
   1.122 +                                        border-top: 6px;
   1.123 +                                        padding-top: 6px"></div>
   1.124 +    </div>
   1.125 +
   1.126 +    <!-- padding-bottom is exactly the available height: -->
   1.127 +    <div class="multicol">
   1.128 +      <div class="flexContainer" style="height: 8px;
   1.129 +                                        border-bottom: 5px;
   1.130 +                                        padding-bottom: 5px"></div>
   1.131 +    </div>
   1.132 +
   1.133 +    <!-- padding-bottom is larger than available height: -->
   1.134 +    <div class="multicol">
   1.135 +      <div class="flexContainer" style="height: 8px;
   1.136 +                                        border-bottom: 6px;
   1.137 +                                        padding-bottom: 6px"></div>
   1.138 +    </div>
   1.139 +
   1.140 +  </body>
   1.141 +</html>

mercurial