layout/reftests/flexbox/pagination/flexbox-empty-1c.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

michael@0 1 <!DOCTYPE html>
michael@0 2 <!-- Any copyright is dedicated to the Public Domain.
michael@0 3 http://creativecommons.org/publicdomain/zero/1.0/ -->
michael@0 4 <!-- Testcase for how we fragment an empty fixed-height flex container, with
michael@0 5 various combinations of margin/border/padding helping it to be too tall,
michael@0 6 and with the flex container having "flex-direction: column".
michael@0 7 -->
michael@0 8 <html>
michael@0 9 <head>
michael@0 10 <style>
michael@0 11 .multicol {
michael@0 12 height: 10px;
michael@0 13 width: 100px;
michael@0 14 -moz-column-width: 20px;
michael@0 15 -moz-column-fill: auto;
michael@0 16 border: 2px solid orange;
michael@0 17 }
michael@0 18 .flexContainer {
michael@0 19 display: flex;
michael@0 20 flex-direction: column;
michael@0 21 background: teal;
michael@0 22 /* border-width is 0 by default; some sub-testcases will increase it. */
michael@0 23 border: 0 dashed black;
michael@0 24 }
michael@0 25 </style>
michael@0 26 </head>
michael@0 27 <body>
michael@0 28 <!-- NO BORDERS/PADDING -->
michael@0 29 <!-- ================== -->
michael@0 30 <!-- content fits exactly into 1 column: -->
michael@0 31 <div class="multicol">
michael@0 32 <div class="flexContainer" style="height: 10px"></div>
michael@0 33 </div>
michael@0 34
michael@0 35 <!-- content fits, but margin-top pushes it to overflow: -->
michael@0 36 <div class="multicol">
michael@0 37 <div class="flexContainer" style="height: 9px;
michael@0 38 margin-top: 2px;"></div>
michael@0 39 </div>
michael@0 40
michael@0 41 <!-- content is too tall, by 1px: -->
michael@0 42 <div class="multicol">
michael@0 43 <div class="flexContainer" style="height: 11px"></div>
michael@0 44 </div>
michael@0 45
michael@0 46 <!-- BORDERS/PADDING ON TOP -->
michael@0 47 <!-- ====================== -->
michael@0 48 <!-- content fits, but border-top makes us too tall: -->
michael@0 49 <div class="multicol">
michael@0 50 <div class="flexContainer" style="height: 9px;
michael@0 51 border-top-width: 2px"></div>
michael@0 52 </div>
michael@0 53
michael@0 54 <!-- content fits, but padding-top makes us too tall: -->
michael@0 55 <div class="multicol">
michael@0 56 <div class="flexContainer" style="height: 9px;
michael@0 57 padding-top: 2px"></div>
michael@0 58 </div>
michael@0 59
michael@0 60 <!-- content fits, but border/padding-top make us too tall: -->
michael@0 61 <div class="multicol">
michael@0 62 <div class="flexContainer" style="height: 9px;
michael@0 63 border-top-width: 1px;
michael@0 64 padding-top: 1px"></div>
michael@0 65 </div>
michael@0 66
michael@0 67 <!-- BORDERS/PADDING ON BOTTOM -->
michael@0 68 <!-- ========================= -->
michael@0 69 <!-- content fits, but border-bottom-width makes us too tall: -->
michael@0 70 <div class="multicol">
michael@0 71 <div class="flexContainer" style="height: 9px;
michael@0 72 border-bottom-width: 2px"></div>
michael@0 73 </div>
michael@0 74
michael@0 75 <!-- content fits, but padding-bottom makes us too tall: -->
michael@0 76 <div class="multicol">
michael@0 77 <div class="flexContainer" style="height: 9px;
michael@0 78 padding-bottom: 2px"></div>
michael@0 79 </div>
michael@0 80
michael@0 81 <!-- content fits, but border/padding-bottom make us too tall: -->
michael@0 82 <div class="multicol">
michael@0 83 <div class="flexContainer" style="height: 9px;
michael@0 84 border-bottom-width: 1px;
michael@0 85 padding-bottom: 1px"></div>
michael@0 86 </div>
michael@0 87
michael@0 88 <!-- BORDERS/PADDING ON TOP AND BOTTOM -->
michael@0 89 <!-- ================================= -->
michael@0 90 <!-- content fits, but border-top/bottom combined make us too tall: -->
michael@0 91 <div class="multicol">
michael@0 92 <div class="flexContainer" style="height: 9px;
michael@0 93 border-top-width: 1px;
michael@0 94 border-bottom-width: 1px"></div>
michael@0 95 </div>
michael@0 96
michael@0 97 <!-- content fits, but padding-top/bottom combined make us too tall: -->
michael@0 98 <div class="multicol">
michael@0 99 <div class="flexContainer" style="height: 9px;
michael@0 100 padding-top: 1px;
michael@0 101 padding-bottom: 1px"></div>
michael@0 102 </div>
michael@0 103
michael@0 104 </body>
michael@0 105 </html>

mercurial