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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/caret-color-inline.html

Issue 2665823002: Invalidate caret during paint invalidation (Closed)
Patch Set: NeedsRebaseline Created 3 years, 10 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: third_party/WebKit/LayoutTests/paint/invalidation/caret-color-inline.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/caret-color-inline.html b/third_party/WebKit/LayoutTests/paint/invalidation/caret-color-inline.html
new file mode 100644
index 0000000000000000000000000000000000000000..7505b8076190965f91c377a402633f533e7741b4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/caret-color-inline.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+Tests color of caret changes with the 'color' style. Passes if caret is always in the came color as the text.
+<div id="div" contenteditable="true">
+ <span id="span" style="color: red; font-size: 50px">SAMPLE</span>
+</div>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script>
+div.focus();
+runAfterLayoutAndPaint(function() {
+ span.style.color = 'green';
+}, true);
+</script>

Powered by Google App Engine
This is Rietveld 408576698