Bug 1351924 - Add reftests for correctness bug fixed by this bug. r=dholbert

Co-authored-by: L. David Baron <dbaron@dbaron.org>
Co-authored-by: Chris Pearce <cpearce@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D37609

--HG--
extra : moz-landing-system : lando
This commit is contained in:
L. David Baron 2019-07-14 01:04:29 +00:00
parent 8029f7b024
commit e91086dae1
5 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>Testcase, bug 1351924</title>
<meta charset="UTF-8">
</head>
<body>
<div id="outer" style="background-color: red; height: auto;">
<div style="height: 50%; background-color: blue;">
<div style="height: 100%; background-color: green; display: inline-block; vertical-align: top;">Green</div>
<div style="height: 100px; background-color: yellow; display: inline-block; vertical-align: top;">Yellow</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<title>Testcase, bug 1351924</title>
<meta charset="UTF-8">
</head>
<body>
<div id="outer" style="background-color: red; height: 200px;">
<div style="height: 50%; background-color: blue;">
<div style="height: 100%; background-color: green; display: inline-block; vertical-align: top;">Green</div>
<div style="height: 100px; background-color: yellow; display: inline-block; vertical-align: top;">Yellow</div>
</div>
</div>
<script>
let d = document.getElementById("outer");
d.offsetHeight; // flush layout
d.style.height = "auto";
</script>
</body>
</html>

View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>Testcase, bug 1351924</title>
<meta charset="UTF-8">
</head>
<body>
<div id="outer" style="background-color: red; height: 200px;">
<div style="height: 50%; background-color: blue;">
<div style="height: 100%; background-color: green; display: inline-block; vertical-align: top;">Green</div>
<div style="height: 100px; background-color: yellow; display: inline-block; vertical-align: top;">Yellow</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<title>Testcase, bug 1351924</title>
<meta charset="UTF-8">
</head>
<body>
<div id="outer" style="background-color: red; height: auto;">
<div style="height: 50%; background-color: blue;">
<div style="height: 100%; background-color: green; display: inline-block; vertical-align: top;">Green</div>
<div style="height: 100px; background-color: yellow; display: inline-block; vertical-align: top;">Yellow</div>
</div>
</div>
<script>
let d = document.getElementById("outer");
d.offsetHeight; // flush layout
d.style.height = "200px";
</script>
</body>
</html>

View File

@ -2021,6 +2021,8 @@ skip-if(Android) != 1318769-1.html 1318769-1-ref.html
skip-if(isDebugBuild&&winWidget) == 1330051.svg 1330051-ref.svg
== 1348481-1.html 1348481-ref.html
== 1348481-2.html 1348481-ref.html
fails == 1351924-1.html 1351924-1-ref.html
fails == 1351924-2.html 1351924-2-ref.html
== 1352464-1.html 1352464-1-ref.html
== 1358375-1.html 1358375-ref.html
== 1358375-2.html 1358375-ref.html