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

Unified Diff: LayoutTests/paint/invalidation/text-decoration-invalidation.html

Issue 1332233002: Invalidate whitespace text on text color changes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: TextOrColorChanged -> TextDecorationOrColorChanged Created 5 years, 3 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/paint/invalidation/text-decoration-invalidation.html
diff --git a/LayoutTests/paint/invalidation/text-decoration-invalidation.html b/LayoutTests/paint/invalidation/text-decoration-invalidation.html
new file mode 100644
index 0000000000000000000000000000000000000000..9d6233311d4983bece4b028dd81ae223eb267f44
--- /dev/null
+++ b/LayoutTests/paint/invalidation/text-decoration-invalidation.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<style>
+ div {
+ display: block;
+ width: 400px;
+ height: 100px;
+ color: blue;
+ }
+ #underlineHover:hover {
+ text-decoration: underline;
+ }
+ #underlineNoHover:hover {
+ text-decoration: underline;
+ }
+</style>
+
+<div id="underlineHover">
+<span>When</span> <span>hovered, </span><span>there</span> <span>should</span> <span> be </span> <span>no</span> <span>gaps</span> <span>in</span> <span>the</span> <span>underline.</span>
+</div>
+
+<div id="underlineNoHover">
+<span>When</span> <span>not hovered, </span><span>there</span> <span>should</span> <span> be </span> <span>no</span> <span>underlines.</span>
+</div>
+
+<script>
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+ if (window.eventSender);
+ eventSender.mouseMoveTo(underlineNoHover.offsetLeft + 10, underlineNoHover.offsetTop + 10);
+ testRunner.layoutAndPaintAsyncThen(function(){
+ if (window.eventSender);
+ eventSender.mouseMoveTo(underlineHover.offsetLeft + 10, underlineHover.offsetTop + 10);
+ testRunner.notifyDone();
+ });
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698