layout/reftests/columns/column-balancing-overflow-004.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <html class="reftest-wait">
     2 <head><style>
     3 /* Sets of heights that trigger crash:
     4     100px/50px/51+px
     5     100px/30px/74+px
     6    Get only an assert unless you set ".d { position: absolute; }".
     8    Trigger hang (separate issue, absolute not needed):
     9     10px/10px/9999px
    10     10px/10px/999999px --> "bad height" notreached
    11 */
    12 /* Note: The -moz-column-gap and the backgrounds 
    13    are just added here for easier visualization */
    14 #colset { width: 200px;
    15           padding: 2px;
    16           -moz-column-count: 3;
    17           -moz-column-gap: 2px; }
    18 #a      { height: 100px;   background: lightblue;}
    19 #b      { height:  50px;   background: lightgreen;}
    20 #c      { height:  51px;   background: orange;}
    22 </style>
    23 <script>
    24   function boom() {
    25     document.getElementById('colset').offsetHeight;
    26     document.getElementById('a').style.height = 'auto';
    27     document.documentElement.className = ''
    28   }
    29 </script>
    30 </head>
    31 <!-- Removing whitespace in body for simpler frame trees -->
    32 <body onload="boom()"
    33  ><div id="colset"
    34    ><div
    35      ><div id="a"></div
    36      ><div id="b"
    37        ><div id="c"></div
    38        ><div id="d"></div
    39      ></div
    40    ></div
    41  ></div
    42 ></body>
    43 </html>

mercurial