Bug 477462 - margin-collapsing test suite, wave 6; parent's and last-child's bottom margin with min-/max-/height. r=dholbert

This commit is contained in:
Daniel Schattenkirchner 2013-09-14 22:16:53 -04:00
parent afc0d277a9
commit 06df61b3db
147 changed files with 4535 additions and 1 deletions

View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 100px;
background-color: lightgreen;
}
#last-child {
height: 40px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
height: 100px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 40px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 100px;
background-color: lightgreen;
}
#last-child {
height: 40px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
height: 100px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 40px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 100px;
background-color: lightgreen;
}
#last-child {
height: 40px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 100px;
background-color: lightgreen;
}
#last-child {
height: 100px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
height: 100px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 100px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 100px;
background-color: lightgreen;
}
#last-child {
height: 100px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
height: 100px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 100px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 100px;
background-color: lightgreen;
}
#last-child {
height: 100px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 100px;
background-color: lightgreen;
}
#last-child {
height: 140px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
height: 100px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 140px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 100px;
background-color: lightgreen;
}
#last-child {
height: 140px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
height: 100px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 140px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 100px;
background-color: lightgreen;
}
#last-child {
height: 140px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 100px;
background-color: lightgreen;
}
#last-child {
height: 10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
min-height: 50px;
background-color: lightgreen;
}
#last-child {
height: 10px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('parent').style.height = '100px';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 100px;
min-height: 50px;
background-color: lightgreen;
}
#last-child {
height: 10px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
min-height: 50px;
background-color: lightgreen;
}
#last-child {
height: 10px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('parent').style.height = '100px';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 100px;
min-height: 50px;
background-color: lightgreen;
}
#last-child {
height: 10px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
min-height: 100px;
background-color: lightgreen;
}
#last-child {
height: 10px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('parent').style.height = '50px';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 50px;
min-height: 100px;
background-color: lightgreen;
}
#last-child {
height: 10px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
min-height: 100px;
background-color: lightgreen;
}
#last-child {
height: 10px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('parent').style.height = '50px';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 50px;
min-height: 100px;
background-color: lightgreen;
}
#last-child {
height: 10px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
background-color: lightgreen;
}
#last-child {
height: 10px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('parent').style.height = '150px';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 150px;
max-height: 100px;
background-color: lightgreen;
}
#last-child {
height: 10px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
background-color: lightgreen;
}
#last-child {
height: 10px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('parent').style.height = '150px';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 150px;
max-height: 100px;
background-color: lightgreen;
}
#last-child {
height: 10px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 150px;
background-color: lightgreen;
}
#last-child {
height: 10px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('parent').style.height = '100px';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 100px;
max-height: 150px;
background-color: lightgreen;
}
#last-child {
height: 10px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 150px;
background-color: lightgreen;
}
#last-child {
height: 10px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('parent').style.height = '100px';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 100px;
max-height: 150px;
background-color: lightgreen;
}
#last-child {
height: 10px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
background-color: lightgreen;
}
#last-child {
height: 40px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
#spacer {
height: 20px;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="spacer"></div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 10px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 40px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 10px;
background-color: lightgreen;
}
#last-child {
height: 40px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 40px;
margin-bottom: 10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
height: 40px;
margin-bottom: 10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 40px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
height: 40px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
background-color: lightgreen;
}
#last-child {
height: 40px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
#spacer {
height: 10px;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="spacer"></div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -10px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 40px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -10px;
background-color: lightgreen;
}
#last-child {
height: 40px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 40px;
margin-bottom: -10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
height: 40px;
margin-bottom: -10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
background-color: lightgreen;
}
#last-child {
height: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -10px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 40px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -10px;
background-color: lightgreen;
}
#last-child {
height: 40px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -20px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 40px;
margin-bottom: -10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -20px;
background-color: lightgreen;
}
#last-child {
height: 40px;
margin-bottom: -10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -20px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 40px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -20px;
background-color: lightgreen;
}
#last-child {
height: 40px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
background-color: lightgreen;
}
#last-child {
height: 100px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
#spacer {
height: 20px;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="spacer"></div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 10px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 100px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 10px;
background-color: lightgreen;
}
#last-child {
height: 100px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 100px;
margin-bottom: 10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
height: 100px;
margin-bottom: 10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 100px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
height: 100px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
background-color: lightgreen;
}
#last-child {
height: 100px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
#spacer {
height: 10px;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="spacer"></div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -10px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 100px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -10px;
background-color: lightgreen;
}
#last-child {
height: 100px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 100px;
margin-bottom: -10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
height: 100px;
margin-bottom: -10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
background-color: lightgreen;
}
#last-child {
height: 80px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -10px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 100px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -10px;
background-color: lightgreen;
}
#last-child {
height: 100px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -20px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 100px;
margin-bottom: -10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -20px;
background-color: lightgreen;
}
#last-child {
height: 100px;
margin-bottom: -10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -20px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 100px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -20px;
background-color: lightgreen;
}
#last-child {
height: 100px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
background-color: lightgreen;
}
#last-child {
height: 110px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
#spacer {
height: 10px;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="spacer"></div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 10px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 110px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 10px;
background-color: lightgreen;
}
#last-child {
height: 110px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 110px;
margin-bottom: 10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
height: 110px;
margin-bottom: 10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 110px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
height: 110px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
background-color: lightgreen;
}
#last-child {
height: 110px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -10px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 110px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -10px;
background-color: lightgreen;
}
#last-child {
height: 110px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 110px;
margin-bottom: -10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
height: 110px;
margin-bottom: -10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
background-color: lightgreen;
}
#last-child {
height: 110px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
position: relative;
top: -30px;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -10px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 110px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -10px;
background-color: lightgreen;
}
#last-child {
height: 110px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -20px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 110px;
margin-bottom: -10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -20px;
background-color: lightgreen;
}
#last-child {
height: 110px;
margin-bottom: -10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -20px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 110px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
max-height: 100px;
margin-bottom: -20px;
background-color: lightgreen;
}
#last-child {
height: 110px;
margin-bottom: -20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 100px;
background-color: lightgreen;
}
#last-child {
height: 40px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
#spacer {
height: 20px;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="spacer"></div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
min-height: 100px;
margin-bottom: 10px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 40px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
min-height: 100px;
margin-bottom: 10px;
background-color: lightgreen;
}
#last-child {
height: 40px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
min-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 40px;
margin-bottom: 10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
min-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
height: 40px;
margin-bottom: 10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
min-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 40px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
min-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
height: 40px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
height: 100px;
background-color: lightgreen;
}
#last-child {
height: 40px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
#spacer {
height: 10px;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="spacer"></div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
min-height: 100px;
margin-bottom: -10px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 40px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent {
min-height: 100px;
margin-bottom: -10px;
background-color: lightgreen;
}
#last-child {
height: 40px;
margin-bottom: 20px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style type="text/css">
#parent {
min-height: 100px;
margin-bottom: 20px;
background-color: lightgreen;
}
#last-child {
display: none;
height: 40px;
margin-bottom: -10px;
background-color: green;
}
#separator {
height: 20px;
background-color: blue;
}
</style>
<script type="text/javascript">
function test() {
document.getElementById('last-child').style.display = 'block';
document.documentElement.removeAttribute('class');
}
document.addEventListener('MozReftestInvalidate', test, false);
</script>
</head>
<body>
<div id="parent">
<div id="last-child"></div>
</div>
<div id="separator"></div>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More