layout/reftests/flexbox/pagination/flexbox-unbreakable-child-1a.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: row".
michael@0 6 -->
michael@0 7 <html>
michael@0 8 <head>
michael@0 9 <style>
michael@0 10 .multicol {
michael@0 11 height: 10px;
michael@0 12 width: 100px;
michael@0 13 -moz-column-width: 20px;
michael@0 14 -moz-column-fill: auto;
michael@0 15 border: 2px solid orange;
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: row;
michael@0 21 background: teal;
michael@0 22 border: 1px dashed black;
michael@0 23 }
michael@0 24 .item {
michael@0 25 width: 100%;
michael@0 26 height: 20px;
michael@0 27 }
michael@0 28 </style>
michael@0 29 </head>
michael@0 30 <body>
michael@0 31 <!-- auto-height container: -->
michael@0 32 <div class="multicol">
michael@0 33 <div class="flexContainer">
michael@0 34 <img src="" class="item">
michael@0 35 </div>
michael@0 36 </div>
michael@0 37
michael@0 38 <!-- fixed-height container, smaller than available height: -->
michael@0 39 <div class="multicol">
michael@0 40 <div class="flexContainer" style="height: 8px">
michael@0 41 <img src="" class="item">
michael@0 42 </div>
michael@0 43 </div>
michael@0 44
michael@0 45 <!-- fixed-height container, between available height and child height: -->
michael@0 46 <div class="multicol">
michael@0 47 <div class="flexContainer" style="height: 15px">
michael@0 48 <img src="" class="item">
michael@0 49 </div>
michael@0 50 </div>
michael@0 51
michael@0 52 <!-- fixed-height container, same as child height: -->
michael@0 53 <div class="multicol">
michael@0 54 <div class="flexContainer" style="height: 20px">
michael@0 55 <img src="" class="item">
michael@0 56 </div>
michael@0 57 </div>
michael@0 58
michael@0 59 <!-- fixed-height container, larger than child height: -->
michael@0 60 <div class="multicol">
michael@0 61 <div class="flexContainer" style="height: 24px">
michael@0 62 <img src="" class="item">
michael@0 63 </div>
michael@0 64 </div>
michael@0 65 </body>
michael@0 66 </html>

mercurial