layout/reftests/flexbox/pagination/flexbox-empty-1b.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-1b.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,105 @@
     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 +     various combinations of margin/border/padding helping it to be too tall,
     1.9 +     and with the flex container having "flex-direction: row-reverse".
    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 +    }
    1.21 +    .flexContainer {
    1.22 +      display: flex;
    1.23 +      flex-direction: row-reverse;
    1.24 +      background: teal;
    1.25 +      /* border-width is 0 by default; some sub-testcases will increase it. */
    1.26 +      border: 0 dashed black;
    1.27 +    }
    1.28 +    </style>
    1.29 +  </head>
    1.30 +  <body>
    1.31 +    <!-- NO BORDERS/PADDING -->
    1.32 +    <!-- ================== -->
    1.33 +    <!-- content fits exactly into 1 column: -->
    1.34 +    <div class="multicol">
    1.35 +      <div class="flexContainer" style="height: 10px"></div>
    1.36 +    </div>
    1.37 +
    1.38 +    <!-- content fits, but margin-top pushes it to overflow: -->
    1.39 +    <div class="multicol">
    1.40 +      <div class="flexContainer" style="height: 9px;
    1.41 +                                        margin-top: 2px;"></div>
    1.42 +    </div>
    1.43 +
    1.44 +    <!-- content is too tall, by 1px: -->
    1.45 +    <div class="multicol">
    1.46 +      <div class="flexContainer" style="height: 11px"></div>
    1.47 +    </div>
    1.48 +
    1.49 +    <!-- BORDERS/PADDING ON TOP -->
    1.50 +    <!-- ====================== -->
    1.51 +    <!-- content fits, but border-top makes us too tall: -->
    1.52 +    <div class="multicol">
    1.53 +      <div class="flexContainer" style="height: 9px;
    1.54 +                                        border-top-width: 2px"></div>
    1.55 +    </div>
    1.56 +
    1.57 +    <!-- content fits, but padding-top makes us too tall: -->
    1.58 +    <div class="multicol">
    1.59 +      <div class="flexContainer" style="height: 9px;
    1.60 +                                        padding-top: 2px"></div>
    1.61 +    </div>
    1.62 +
    1.63 +    <!-- content fits, but border/padding-top make us too tall: -->
    1.64 +    <div class="multicol">
    1.65 +      <div class="flexContainer" style="height: 9px;
    1.66 +                                        border-top-width: 1px;
    1.67 +                                        padding-top: 1px"></div>
    1.68 +    </div>
    1.69 +
    1.70 +    <!-- BORDERS/PADDING ON BOTTOM -->
    1.71 +    <!-- ========================= -->
    1.72 +    <!-- content fits, but border-bottom-width makes us too tall: -->
    1.73 +    <div class="multicol">
    1.74 +      <div class="flexContainer" style="height: 9px;
    1.75 +                                        border-bottom-width: 2px"></div>
    1.76 +    </div>
    1.77 +
    1.78 +    <!-- content fits, but padding-bottom makes us too tall: -->
    1.79 +    <div class="multicol">
    1.80 +      <div class="flexContainer" style="height: 9px;
    1.81 +                                        padding-bottom: 2px"></div>
    1.82 +    </div>
    1.83 +
    1.84 +    <!-- content fits, but border/padding-bottom make us too tall: -->
    1.85 +    <div class="multicol">
    1.86 +      <div class="flexContainer" style="height: 9px;
    1.87 +                                        border-bottom-width: 1px;
    1.88 +                                        padding-bottom: 1px"></div>
    1.89 +    </div>
    1.90 +
    1.91 +    <!-- BORDERS/PADDING ON TOP AND BOTTOM -->
    1.92 +    <!-- ================================= -->
    1.93 +    <!-- content fits, but border-top/bottom combined make us too tall: -->
    1.94 +    <div class="multicol">
    1.95 +      <div class="flexContainer" style="height: 9px;
    1.96 +                                        border-top-width: 1px;
    1.97 +                                        border-bottom-width: 1px"></div>
    1.98 +    </div>
    1.99 +
   1.100 +    <!-- content fits, but padding-top/bottom combined make us too tall: -->
   1.101 +    <div class="multicol">
   1.102 +      <div class="flexContainer" style="height: 9px;
   1.103 +                                        padding-top: 1px;
   1.104 +                                        padding-bottom: 1px"></div>
   1.105 +    </div>
   1.106 +
   1.107 +  </body>
   1.108 +</html>

mercurial