Bug 1381821: reftest. r=bz
authorEmilio Cobos Álvarez <emilio@crisal.io>
Thu, 03 Aug 2017 16:57:06 +0200
changeset 422351 11c744cde4284f2415ede6a0d1254db07104e7d9
parent 422350 0800d81dbd72013e560ccc86c4cf4bc8197fd885
child 422352 2a890e5dcdfd0b03371518baa13f3c6c3d7700bd
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1381821
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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