layout/reftests/pagination/column-balancing-break-inside-avoid-2-ref.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 <html class="reftest-wait">
     2 <head>
     3   <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012">
     4   <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside">
     5   <meta name="flags" content="paged">
     6     <meta charset="utf-8">
     7     <title>Balancing Overflow, page-break-inside:avoid</title>
     8 <style>
     9 /* Sets of heights that trigger crash:
    10     100px/50px/51+px
    11     100px/30px/74+px
    12    Get only an assert unless you set ".d { position: absolute; }".
    14    Trigger hang (separate issue, absolute not needed):
    15     10px/10px/9999px
    16     10px/10px/999999px --> "bad height" notreached
    17 */
    18 /* Note: The -moz-column-gap and the backgrounds 
    19    are just added here for easier visualization */
    20 #colset { width: 200px;
    21           padding: 2px;
    22           -moz-column-count: 3;
    23           -moz-column-gap: 2px; }
    24 #a      { height: 100px;   background: lightblue;}
    25 #b      { height:  50px;   background: lightblue;}
    26 #c      { height:  51px;   background: orange;}
    27 </style>
    28 <script>
    29   function boom() {
    30     document.getElementById('colset').offsetHeight;
    31     document.getElementById('a').style.height = 'auto';
    32     document.documentElement.className = ''
    33   }
    34 </script>
    35 </head>
    36 <!-- Removing whitespace in body for simpler frame trees -->
    37 <body onload="boom()"
    38  ><div id="colset"
    39    ><div
    40      ><div id="a"></div
    41      ><div id="b"
    42        ><div id="c"></div
    43        ><div id="d"></div
    44      ></div
    45    ></div
    46  ></div
    47 ></body>
    48 </html>

mercurial