Bug 1375674: Reftest for the display: contents issue. r=heycam
authorEmilio Cobos Álvarez <emilio@crisal.io>
Fri, 23 Jun 2017 19:41:23 +0200
changeset 414938 15fc474cbc387b9fc8326f18e968651f242587f2
parent 414937 1b05406b224819cfc636963bc9e0df0f04a92d7f
child 414939 d543514f20571a3577dfc4219123b8c0e5c4be22
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersheycam
bugs1375674
milestone56.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 1375674: Reftest for the display: contents issue. r=heycam MozReview-Commit-ID: Kca1oIzo7oZ
layout/reftests/bugs/1375674-ref.html
layout/reftests/bugs/1375674.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1375674-ref.html
@@ -0,0 +1,11 @@
+<!doctype html>
+<title>CSS test reference</title>
+<style>
+  .contents {
+    will-change: opacity;
+    color: green;
+  }
+</style>
+<div class="contents">
+  Should be green.
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/1375674.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<title>
+  Reftest for bug 1375674: display: contents changes were assumed handled
+  incorrectly
+</title>
+<style>
+  .contents { color: red; display: contents; }
+  .contents.restyled { will-change: opacity; color: green; }
+</style>
+<div class="contents">
+  Should be green.
+</div>
+<script>
+onload = () => {
+  document.body.offsetTop;
+  document.querySelector('.contents').classList.add('restyled');
+}
+</script>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -2023,8 +2023,9 @@ fails-if(!stylo||styloVsGecko) == 136516
 == 1375315-6.html 1375315-6-ref.html
 == 1375315-7.html 1375315-7-ref.html
 == 1375315-8.html 1375315-8-ref.html
 == 1375315-9.html 1375315-9-ref.html
 == 1375315-10.html 1375315-10-ref.html
 == 1375315-11.html 1375315-11-ref.html
 == 1375315-12.html 1375315-12-ref.html
 == 1374062.html 1374062-ref.html
+== 1375674.html 1375674-ref.html