Bug 1372056: Test for dynamic text-decoration propagation. r=xidorn
authorEmilio Cobos Álvarez <emilio@crisal.io>
Tue, 27 Jun 2017 14:22:14 -0700
changeset 414923 bb3d1acd76b96397add0c69d653e563e8c265c6e
parent 414922 36dfc734a106adc61c97b2d6084b1f0fcc9f000f
child 414924 2bb35f565c0ddc68a6edd596339df49cce7ea582
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)
reviewersxidorn
bugs1372056
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 1372056: Test for dynamic text-decoration propagation. r=xidorn MozReview-Commit-ID: ArB3uZmzhwn
layout/reftests/w3c-css/submitted/text-decor-3/reftest.list
layout/reftests/w3c-css/submitted/text-decor-3/text-decoration-propagation-dynamic-001-ref.html
layout/reftests/w3c-css/submitted/text-decor-3/text-decoration-propagation-dynamic-001.html
--- a/layout/reftests/w3c-css/submitted/text-decor-3/reftest.list
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/reftest.list
@@ -1,10 +1,11 @@
 fails-if(stylo) == ruby-text-decoration-01.html ruby-text-decoration-01-ref.html
 == text-decoration-propagation-01.html text-decoration-propagation-01-ref.html
+== text-decoration-propagation-dynamic-001.html text-decoration-propagation-dynamic-001-ref.html
 
 # text-emphasis-style
 == text-emphasis-style-property-001.html text-emphasis-style-property-001-ref.html
 fuzzy-if(gtkWidget,3,4) fuzzy-if(skiaContent,104,80)  == text-emphasis-style-property-002.html text-emphasis-style-property-002-ref.html
 == text-emphasis-style-property-003.html text-emphasis-style-property-003-ref.html
 == text-emphasis-style-property-004.html text-emphasis-style-property-004-ref.html
 == text-emphasis-style-property-005.html text-emphasis-style-property-005-ref.html
 == text-emphasis-style-property-005a.html text-emphasis-style-property-005-ref.html
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-decoration-propagation-dynamic-001-ref.html
@@ -0,0 +1,10 @@
+<!doctype html>
+<title>CSS Test reference: Dynamic text-decoration propagation</title>
+<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
+<link rel="help" href="https://www.w3.org/TR/css-text-decor-3/#line-decoration">
+<style>
+  div { text-decoration: underline }
+</style>
+<div>
+  <span><b>Should be underlined</b></span>
+</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/text-decor-3/text-decoration-propagation-dynamic-001.html
@@ -0,0 +1,16 @@
+<!doctype html>
+<title>CSS Test: Dynamic text-decoration propagation</title>
+<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
+<link rel="help" href="https://www.w3.org/TR/css-text-decor-3/#line-decoration">
+<link rel="match" href="text-decoration-propagation-dymanic-001-ref.html">
+<style>
+  div { text-decoration: none }
+  div.restyled { text-decoration: underline }
+</style>
+<div>
+  <span><b>Should be underlined</b></span>
+</div>
+<script>
+  document.body.offsetTop;
+  document.querySelector('div').classList = "restyled";
+</script>