Bug 1377975 - Test cascading pseudos during link transitions. r=hiro
authorJ. Ryan Stinnett <jryans@gmail.com>
Fri, 07 Jul 2017 14:59:36 -0500
changeset 368149 c1e41e79846500d4573052b0e3e64375c8cc7434
parent 368148 1da791db18e37268ce028f562d9c877f1ba56b99
child 368150 4dd0c01a271ca05ea121f3da59fd610918233188
push id32158
push usercbook@mozilla.com
push dateTue, 11 Jul 2017 10:48:59 +0000
treeherdermozilla-central@5e2692f8a367 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershiro
bugs1377975
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 1377975 - Test cascading pseudos during link transitions. r=hiro MozReview-Commit-ID: LLNhhfIvPuy
layout/style/crashtests/crashtests.list
layout/style/crashtests/link-transition-before.html
--- a/layout/style/crashtests/crashtests.list
+++ b/layout/style/crashtests/crashtests.list
@@ -173,8 +173,9 @@ load 1356601-1.html
 load 1370793-1.xhtml
 load 1374175-1.html
 load content-only-on-link-before.html
 load content-only-on-visited-before.html
 load 1375812-1.html
 load 1377053-1.html
 load 1377256-1.html
 load 1378814.html
+load link-transition-before.html
new file mode 100644
--- /dev/null
+++ b/layout/style/crashtests/link-transition-before.html
@@ -0,0 +1,27 @@
+<!DOCTYPE HTML>
+<html class="reftest-wait">
+<style type="text/css">
+a {
+  border-bottom: 1px solid transparent;
+  transition: all 2s linear;
+}
+a.start {
+  border-bottom: 1px solid #000000;
+}
+/* Can be anything, just need to ensure pseudos cascade */
+:before {
+  color: blue;
+}
+</style>
+<a href="http://www.example.com/">example</a>
+<script>
+let a0 = document.querySelectorAll("a")[0];
+a0.classList.add("start");
+requestIdleCallback(() => {
+  a0.classList.remove("start");
+  requestIdleCallback(() => {
+    a0.classList.add("start");
+    document.documentElement.removeAttribute("class");
+  });
+});
+</script>
\ No newline at end of file