Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: LayoutTests/fast/css/text-decoration-color-on-hover.html

Issue 950623002: Store resolved color in AppliedTextDecoration (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: removed inherited_flags.m_textunderline Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css/text-decoration-color-on-hover.html
diff --git a/LayoutTests/fast/css/text-decoration-color-on-hover.html b/LayoutTests/fast/css/text-decoration-color-on-hover.html
new file mode 100644
index 0000000000000000000000000000000000000000..e67dd324ef75b586c964061ac0a40383544a35a4
--- /dev/null
+++ b/LayoutTests/fast/css/text-decoration-color-on-hover.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+.outer {
+ text-decoration: underline;
+ color: red;
+}
+
+.inner {
+ color: blue;
+}
+
+.nextouter{
wkorman 2015/07/01 15:16:14 space before {
+ text-decoration: underline;
+ color: green;
+}
+</style>
+</head>
+<body>
+<p>
+ <span class=outer>
+ <span class=inner>
+ Test passed if underline is green.
+ </span>
+ </span>
+</p>
+
+<script>
+if (window.testRunner)
+ testRunner.waitUntilDone();
+var iterationCount = 0;
+function change() {
+ ++iterationCount;
+ var outspan = document.getElementsByClassName("outer")[0];
+ // update for next repaint
+ if (iterationCount == 2 ) {
+ outspan.className = "nextouter";
+ if (window.testRunner)
+ testRunner.notifyDone();
+ return;
+ }
+ window.requestAnimationFrame(change);
+}
+window.requestAnimationFrame(change);
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698