Bug 1406254 - Visited reftest for ::first-line inheritance. r=emilio draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Wed, 11 Oct 2017 15:33:14 -0500
changeset 678826 5605ac2c31b2d6063d88f27ee0fa1bc861a69a9a
parent 678825 d3a486d2942436c916f9f712320e1b39cd3c6c68
child 735461 d1d6352d24c85b52b7f442c68168801bea67ca75
push id84066
push userbmo:jryans@gmail.com
push dateWed, 11 Oct 2017 23:42:38 +0000
reviewersemilio
bugs1406254
milestone58.0a1
Bug 1406254 - Visited reftest for ::first-line inheritance. r=emilio MozReview-Commit-ID: 4ZOlVvBuSfT
layout/reftests/css-visited/color-on-visited-text-1-ref.html
layout/reftests/css-visited/color-on-visited-text-1.html
layout/style/test/moz.build
layout/style/test/test_visited_reftests.html
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-visited/color-on-visited-text-1-ref.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<style>
+  .unvisited {
+    color: blue;
+  }
+  .visited {
+    color: purple;
+  }
+  .first-line {
+    color: green;
+  }
+</style>
+<div class="first-line">Visited</div>
+<div class="first-line">Visited with span</div>
+<div class="unvisited">Visited with inner unvisited</div>
+<div class="visited">Visited with inner visited</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-visited/color-on-visited-text-1.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<style>
+  a {
+    display: block;
+    text-decoration: none;
+  }
+  :link {
+    color: blue;
+  }
+  :visited {
+    color: purple;
+  }
+  .outer::first-line {
+    color: green;
+  }
+</style>
+<a class="outer" href>Visited</a>
+<a class="outer" href><span>Visited with span</span></a>
+<a class="outer" href><a href="unvisited-page.html">Visited with inner unvisited</a></a>
+<a class="outer" href><a href>Visited with inner visited</a></a>
--- a/layout/style/test/moz.build
+++ b/layout/style/test/moz.build
@@ -55,16 +55,18 @@ TEST_HARNESS_FILES.testing.mochitest.tes
     '/layout/reftests/css-visited/color-on-link-1-ref.html',
     '/layout/reftests/css-visited/color-on-link-1.html',
     '/layout/reftests/css-visited/color-on-link-before-1.html',
     '/layout/reftests/css-visited/color-on-text-decoration-1-ref.html',
     '/layout/reftests/css-visited/color-on-text-decoration-1.html',
     '/layout/reftests/css-visited/color-on-visited-1-ref.html',
     '/layout/reftests/css-visited/color-on-visited-1.html',
     '/layout/reftests/css-visited/color-on-visited-before-1.html',
+    '/layout/reftests/css-visited/color-on-visited-text-1-ref.html',
+    '/layout/reftests/css-visited/color-on-visited-text-1.html',
     '/layout/reftests/css-visited/column-rule-1-notref.html',
     '/layout/reftests/css-visited/column-rule-1-ref.html',
     '/layout/reftests/css-visited/column-rule-1.html',
     '/layout/reftests/css-visited/content-before-1-ref.html',
     '/layout/reftests/css-visited/content-color-on-link-before-1-ref.html',
     '/layout/reftests/css-visited/content-color-on-link-before-1.html',
     '/layout/reftests/css-visited/content-color-on-visited-before-1-ref.html',
     '/layout/reftests/css-visited/content-color-on-visited-before-1.html',
--- a/layout/style/test/test_visited_reftests.html
+++ b/layout/style/test/test_visited_reftests.html
@@ -33,16 +33,17 @@ var gTests = [
   // coloring on the TEST (first file) until the test passes.
   "== pseudo-classes-02.svg pseudo-classes-02-ref.svg",
   "needs-focus == caret-color-on-visited-1.html caret-color-on-visited-1-ref.html",
   "!= color-on-link-1-ref.html color-on-visited-1-ref.html",
   "== color-on-link-1.html color-on-link-1-ref.html",
   "== color-on-link-before-1.html color-on-link-1-ref.html",
   "== color-on-visited-1.html color-on-visited-1-ref.html",
   "== color-on-visited-before-1.html color-on-visited-1-ref.html",
+  "== color-on-visited-text-1.html color-on-visited-text-1-ref.html",
   "!= content-color-on-link-before-1-ref.html content-color-on-visited-before-1-ref.html",
   "== content-color-on-link-before-1.html content-color-on-link-before-1-ref.html",
   "== content-color-on-visited-before-1.html content-color-on-visited-before-1-ref.html",
   "== content-on-link-before-1.html content-before-1-ref.html",
   "== content-on-visited-before-1.html content-before-1-ref.html",
   "== color-on-text-decoration-1.html color-on-text-decoration-1-ref.html",
   "== color-on-bullets-1.html color-on-bullets-1-ref.html",
   // NOTE: background-color is tested by all the selector tests (and