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.

     1 <!DOCTYPE html>
     2 <!-- Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/publicdomain/zero/1.0/ -->
     4 <!-- Testcase for how we fragment a flex container with a single unbreakable
     5      child, with the flex container having "flex-direction: row".
     6 -->
     7 <html>
     8   <head>
     9     <style>
    10     .multicol {
    11       height: 10px;
    12       width: 100px;
    13       -moz-column-width: 20px;
    14       -moz-column-fill: auto;
    15       border: 2px solid orange;
    16       margin-bottom: 15px; /* (just for spacing between testcases) */
    17     }
    18     .flexContainer {
    19       display: flex;
    20       flex-direction: row;
    21       background: teal;
    22       border: 1px dashed black;
    23     }
    24     .item {
    25       width: 100%;
    26       height: 20px;
    27     }
    28     </style>
    29   </head>
    30   <body>
    31     <!-- auto-height container: -->
    32     <div class="multicol">
    33       <div class="flexContainer">
    34         <img src="" class="item">
    35       </div>
    36     </div>
    38     <!-- fixed-height container, smaller than available height: -->
    39     <div class="multicol">
    40       <div class="flexContainer" style="height: 8px">
    41         <img src="" class="item">
    42       </div>
    43     </div>
    45     <!-- fixed-height container, between available height and child height: -->
    46     <div class="multicol">
    47       <div class="flexContainer" style="height: 15px">
    48         <img src="" class="item">
    49       </div>
    50     </div>
    52     <!-- fixed-height container, same as child height: -->
    53     <div class="multicol">
    54       <div class="flexContainer" style="height: 20px">
    55         <img src="" class="item">
    56       </div>
    57     </div>
    59     <!-- fixed-height container, larger than child height: -->
    60     <div class="multicol">
    61       <div class="flexContainer" style="height: 24px">
    62         <img src="" class="item">
    63       </div>
    64     </div>
    65   </body>
    66 </html>

mercurial