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

mercurial