layout/reftests/flexbox/pagination/flexbox-unbreakable-child-1c-wrap.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 a single unbreakable
michael@0 5 child, with the flex container having "flex-direction: column" and
michael@0 6 "flex-wrap: wrap".
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 margin-bottom: 15px; /* (just for spacing between testcases) */
michael@0 18 }
michael@0 19 .flexContainer {
michael@0 20 display: flex;
michael@0 21 flex-direction: column;
michael@0 22 flex-wrap: wrap;
michael@0 23 background: teal;
michael@0 24 border: 1px dashed black;
michael@0 25 }
michael@0 26 .item {
michael@0 27 width: 100%;
michael@0 28 height: 20px;
michael@0 29 flex: none;
michael@0 30 }
michael@0 31 </style>
michael@0 32 </head>
michael@0 33 <body>
michael@0 34 <!-- auto-height container: -->
michael@0 35 <div class="multicol">
michael@0 36 <div class="flexContainer">
michael@0 37 <img src="" class="item">
michael@0 38 </div>
michael@0 39 </div>
michael@0 40
michael@0 41 <!-- fixed-height container, smaller than available height: -->
michael@0 42 <div class="multicol">
michael@0 43 <div class="flexContainer" style="height: 8px">
michael@0 44 <img src="" class="item">
michael@0 45 </div>
michael@0 46 </div>
michael@0 47
michael@0 48 <!-- fixed-height container, between available height and child height: -->
michael@0 49 <div class="multicol">
michael@0 50 <div class="flexContainer" style="height: 15px">
michael@0 51 <img src="" class="item">
michael@0 52 </div>
michael@0 53 </div>
michael@0 54
michael@0 55 <!-- fixed-height container, same as child height: -->
michael@0 56 <div class="multicol">
michael@0 57 <div class="flexContainer" style="height: 20px">
michael@0 58 <img src="" class="item">
michael@0 59 </div>
michael@0 60 </div>
michael@0 61
michael@0 62 <!-- fixed-height container, larger than child height: -->
michael@0 63 <div class="multicol">
michael@0 64 <div class="flexContainer" style="height: 24px">
michael@0 65 <img src="" class="item">
michael@0 66 </div>
michael@0 67 </div>
michael@0 68 </body>
michael@0 69 </html>

mercurial