Bug 1406254 - Visited reftest for ::first-line inheritance. r=emilio
authorJ. Ryan Stinnett <jryans@gmail.com>
Wed, 11 Oct 2017 15:33:14 -0500
changeset 385754 e921df5cd9b9626d318987711fbfbe289733de5f
parent 385753 4cc45d7c8cafd210b8efdd32b91194f81baf807e
child 385755 eb94e6ee9a4f0c5acbb0b5dc53896b64f19aa8c5
push id53122
push userjryans@gmail.com
push dateThu, 12 Oct 2017 04:21:39 +0000
treeherderautoland@e921df5cd9b9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1406254
milestone58.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 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