Bug 1380224 - Part 2: Reftest. r=emilio draft
authorCameron McCormack <cam@mcc.id.au>
Thu, 13 Jul 2017 13:52:29 +0800
changeset 608807 3f085b29629031338310da0b858b6472584faf97
parent 608806 a507dd0c752a6a89edcb38d37540f863ada87806
child 637418 a853a19b754a6c404a76bad6e353afabd41767e3
push id68407
push userbmo:cam@mcc.id.au
push dateFri, 14 Jul 2017 06:25:25 +0000
reviewersemilio
bugs1380224
milestone56.0a1
Bug 1380224 - Part 2: Reftest. r=emilio MozReview-Commit-ID: BNJhwgdJ6tR
layout/reftests/bugs/1380224-1-ref.html
layout/reftests/bugs/1380224-1.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1380224-1-ref.html
@@ -0,0 +1,5 @@
+<!DOCTYPE html>
+<style>
+p { color: green; }
+</style>
+<p>This text should be green.</p>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1380224-1.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<style>
+p { color: var(--color); }
+</style>
+<body style="--color: red" onload="run()">
+<p>This text should be green.</p>
+<script>
+function run() {
+  document.body.style.setProperty("--color", "green");
+}
+</script>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -2032,8 +2032,9 @@ fails-if(!stylo||styloVsGecko) == 136516
 == 1375513.html 1375513-ref.html
 == 1375674.html 1375674-ref.html
 == 1372041.html 1372041-ref.html
 == 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