Bug 1381821: reftest. r?bz draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Thu, 03 Aug 2017 16:57:06 +0200
changeset 621047 d8f145ca448932e12e84fb057e61a18301de9209
parent 621046 93fc0262526a71ab3ac2393a527512ecf1694dca
child 640876 3e943eeae3f695b50aeab797e2d2b9102d7f23ac
push id72232
push userbmo:emilio+bugs@crisal.io
push dateFri, 04 Aug 2017 07:44:27 +0000
reviewersbz
bugs1381821
milestone57.0a1
Bug 1381821: reftest. r?bz MozReview-Commit-ID: AQhUS2JNlYZ
layout/reftests/bugs/1381821-ref.html
layout/reftests/bugs/1381821.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1381821-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<style>
+div { color: green; }
+.red > span { color: red; }
+</style>
+<div><span></span></div>
+<div><span>This text should be green.</span></div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1381821.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<style>
+div { color: green; }
+.red > span { color: red; }
+</style>
+<div id="first"><span></span></div>
+<div id="second"><span>This text should be green.</span></div>
+<script>
+getComputedStyle(second.firstChild).color;
+getComputedStyle(first.firstChild).color;
+second.className = "red";
+getComputedStyle(second.firstChild).color;
+first.className = "red";
+second.className = "";
+getComputedStyle(second.firstChild).color;
+</script>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -2032,8 +2032,9 @@ fails-if(!stylo||styloVsGecko) == 136516
 == 1376092.html 1376092-ref.html
 needs-focus == 1377447-1.html 1377447-1-ref.html
 needs-focus != 1377447-1.html 1377447-2.html
 == 1379041.html 1379041-ref.html
 == 1379696.html 1379696-ref.html
 == 1380224-1.html 1380224-1-ref.html
 == 1384065.html 1384065-ref.html
 == 1384275-1.html 1384275-1-ref.html
+== 1381821.html 1381821-ref.html