1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/pagination/column-balancing-break-inside-avoid-2.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,49 @@ 1.4 +<html class="reftest-wait"> 1.5 +<head> 1.6 + <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012"> 1.7 + <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside"> 1.8 + <meta name="flags" content="paged"> 1.9 + <meta charset="utf-8"> 1.10 + <title>Balancing Overflow, page-break-inside:avoid</title> 1.11 +<style> 1.12 +/* Sets of heights that trigger crash: 1.13 + 100px/50px/51+px 1.14 + 100px/30px/74+px 1.15 + Get only an assert unless you set ".d { position: absolute; }". 1.16 + 1.17 + Trigger hang (separate issue, absolute not needed): 1.18 + 10px/10px/9999px 1.19 + 10px/10px/999999px --> "bad height" notreached 1.20 +*/ 1.21 +/* Note: The -moz-column-gap and the backgrounds 1.22 + are just added here for easier visualization */ 1.23 +#colset { width: 200px; 1.24 + padding: 2px; 1.25 + -moz-column-count: 3; 1.26 + -moz-column-gap: 2px; } 1.27 +#a { height: 100px; background: lightblue;} 1.28 +#b { height: 50px; background: lightblue;} 1.29 +#c { height: 51px; background: orange;} 1.30 +div {page-break-inside:avoid; } 1.31 +</style> 1.32 +<script> 1.33 + function boom() { 1.34 + document.getElementById('colset').offsetHeight; 1.35 + document.getElementById('a').style.height = 'auto'; 1.36 + document.documentElement.className = '' 1.37 + } 1.38 +</script> 1.39 +</head> 1.40 +<!-- Removing whitespace in body for simpler frame trees --> 1.41 +<body onload="boom()" 1.42 + ><div id="colset" 1.43 + ><div 1.44 + ><div id="a"></div 1.45 + ><div id="b" 1.46 + ><div id="c"></div 1.47 + ><div id="d"></div 1.48 + ></div 1.49 + ></div 1.50 + ></div 1.51 +></body> 1.52 +</html>