Bug 1121748 - test 1 - Reftest for use of out-of-date frame size during relative positioning in BlockReflowContext. r=smontagu

This commit is contained in:
Jonathan Kew 2015-02-04 13:24:14 +00:00
parent 66fa2911ab
commit 632a838ae2
3 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Bug 1121748-1</title>
<meta charset=utf-8>
<style>
html { width: 25%; }
ul {
margin: 0;
padding: 0;
border: 1px solid green;
}
ul li {
position: relative;
margin: 2px 10px;
background: #eee;
display: block;
}
</style>
<script>
function test() {
document.body.dir = 'rtl';
}
</script>
</head>
<body onload="test()">
<ul>
<li> item #1 </li>
<li> item #2 </li>
<li> item #3 </li>
</ul>
</body>
</html>

View File

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<title>Bug 1121748-1</title>
<meta charset=utf-8>
<style>
html { width: 25%; }
ul {
margin: 0;
padding: 0;
border: 1px solid green;
}
ul li {
position: relative;
margin: 2px 10px;
background: #eee;
display: block;
}
ul li[hidden] {
display: none;
}
</style>
<script>
function test() {
document.body.dir = 'rtl';
document.querySelector('#test').offsetHeight;
document.querySelector('#test').hidden = false;
}
</script>
</head>
<body onload="test()">
<ul>
<li id="test" hidden> item #1 </li>
<li> item #2 </li>
<li> item #3 </li>
</ul>
</body>
</html>

View File

@ -1858,6 +1858,7 @@ fuzzy-if(d2d,36,304) HTTP(..) == 1116480-1-fakeitalic-overflow.html 1116480-1-fa
== 1119117-1b.html 1119117-1-ref.html
== 1120431-1.html 1120431-1-ref.html
== 1120431-2.html 1120431-2-ref.html
== 1121748-1.html 1121748-1-ref.html
== 1127107-1a-nowrap.html 1127107-1-ref.html
== 1127107-1b-pre.html 1127107-1-ref.html
== 1127107-2-capitalize.html 1127107-2-capitalize-ref.html