layout/reftests/flexbox/pagination/flexbox-unbreakable-child-2.html

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

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 a flex container with several children in a
michael@0 5 multi-line vertical flexbox.
michael@0 6 -->
michael@0 7 <html>
michael@0 8 <head>
michael@0 9 <style>
michael@0 10 .multicol {
michael@0 11 height: 40px;
michael@0 12 width: 100px;
michael@0 13 -moz-column-width: 60px;
michael@0 14 -moz-column-fill: auto;
michael@0 15 border: 2px solid purple;
michael@0 16 margin-bottom: 15px; /* (just for spacing between testcases) */
michael@0 17 }
michael@0 18 .flexContainer {
michael@0 19 display: flex;
michael@0 20 flex-direction: column;
michael@0 21 flex-wrap: wrap;
michael@0 22 align-content: flex-start;
michael@0 23 background: yellow;
michael@0 24 border: 1px dashed black;
michael@0 25 }
michael@0 26 .item {
michael@0 27 width: 40px;
michael@0 28 height: 15px;
michael@0 29 border: 1px dotted teal;
michael@0 30 margin: 1px;
michael@0 31 font: 10px;
michael@0 32 }
michael@0 33 </style>
michael@0 34 </head>
michael@0 35 <body>
michael@0 36 <!-- auto-height container: -->
michael@0 37 <div class="multicol">
michael@0 38 <div class="flexContainer">
michael@0 39 <div class="item">1</div>
michael@0 40 <div class="item">2</div>
michael@0 41 <div class="item">3</div>
michael@0 42 </div>
michael@0 43 </div>
michael@0 44
michael@0 45 <!-- auto-height container, with enough children that our last flex line
michael@0 46 overflows (in the cross axis) -->
michael@0 47 <!-- XXXdholbert Ultimately (in bug 939897 probably) we should push the
michael@0 48 overflowing flex line to a continuation of the flex container -->
michael@0 49 <div class="multicol">
michael@0 50 <div class="flexContainer">
michael@0 51 <div class="item">1</div>
michael@0 52 <div class="item">2</div>
michael@0 53 <div class="item">3</div>
michael@0 54 <div class="item">4</div>
michael@0 55 <div class="item">5</div>
michael@0 56 </div>
michael@0 57 </div>
michael@0 58
michael@0 59 <!-- fixed-height container-->
michael@0 60 <div class="multicol">
michael@0 61 <div class="flexContainer" style="height: 70px">
michael@0 62 <div class="item">1</div>
michael@0 63 <div class="item">2</div>
michael@0 64 <div class="item">3</div>
michael@0 65 </div>
michael@0 66 </div>
michael@0 67
michael@0 68 <!-- fixed-height container, with enough children that our last flex line
michael@0 69 overflows (in the cross axis) -->
michael@0 70 <!-- XXXdholbert Ultimately (in bug 939897 probably) we should push the
michael@0 71 overflowing flex line to a continuation of the flex container -->
michael@0 72 <div class="multicol">
michael@0 73 <div class="flexContainer" style="height: 70px">
michael@0 74 <div class="item">1</div>
michael@0 75 <div class="item">2</div>
michael@0 76 <div class="item">3</div>
michael@0 77 <div class="item">4</div>
michael@0 78 <div class="item">5</div>
michael@0 79 </div>
michael@0 80 </div>
michael@0 81 </body>
michael@0 82 </html>

mercurial