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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/columns/column-balancing-overflow-004.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +<html class="reftest-wait">
     1.5 +<head><style>
     1.6 +/* Sets of heights that trigger crash:
     1.7 +    100px/50px/51+px
     1.8 +    100px/30px/74+px
     1.9 +   Get only an assert unless you set ".d { position: absolute; }".
    1.10 +   
    1.11 +   Trigger hang (separate issue, absolute not needed):
    1.12 +    10px/10px/9999px
    1.13 +    10px/10px/999999px --> "bad height" notreached
    1.14 +*/
    1.15 +/* Note: The -moz-column-gap and the backgrounds 
    1.16 +   are just added here for easier visualization */
    1.17 +#colset { width: 200px;
    1.18 +          padding: 2px;
    1.19 +          -moz-column-count: 3;
    1.20 +          -moz-column-gap: 2px; }
    1.21 +#a      { height: 100px;   background: lightblue;}
    1.22 +#b      { height:  50px;   background: lightgreen;}
    1.23 +#c      { height:  51px;   background: orange;}
    1.24 +
    1.25 +</style>
    1.26 +<script>
    1.27 +  function boom() {
    1.28 +    document.getElementById('colset').offsetHeight;
    1.29 +    document.getElementById('a').style.height = 'auto';
    1.30 +    document.documentElement.className = ''
    1.31 +  }
    1.32 +</script>
    1.33 +</head>
    1.34 +<!-- Removing whitespace in body for simpler frame trees -->
    1.35 +<body onload="boom()"
    1.36 + ><div id="colset"
    1.37 +   ><div
    1.38 +     ><div id="a"></div
    1.39 +     ><div id="b"
    1.40 +       ><div id="c"></div
    1.41 +       ><div id="d"></div
    1.42 +     ></div
    1.43 +   ></div
    1.44 + ></div
    1.45 +></body>
    1.46 +</html>

mercurial