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

Unified Diff: third_party/WebKit/LayoutTests/paint/caret/caret-subpixel.html

Issue 2310173002: Paint carets at pixel-snapped positions. (Closed)
Patch Set: none Created 4 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: third_party/WebKit/LayoutTests/paint/caret/caret-subpixel.html
diff --git a/third_party/WebKit/LayoutTests/paint/caret/caret-subpixel.html b/third_party/WebKit/LayoutTests/paint/caret/caret-subpixel.html
new file mode 100644
index 0000000000000000000000000000000000000000..64c44287fefda1307735acc8827e3b40ef2799b4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/caret/caret-subpixel.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<!-- Tests that carets are painted at pixel-snapped positions. If the caret is blurry, the test has failed. -->
+<input id="target" type="text" style="width:200.5px; text-align: right; padding-right: 19px">
+<script>
+onload = () => target.focus();
Xianzhu 2016/09/06 18:42:27 Better to also test paint invalidation to ensure w
chrishtr 2016/09/06 19:00:37 Done.
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698