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

Unified Diff: third_party/WebKit/LayoutTests/paint/spellmarkers/document-markers-zoom-250.html

Issue 2667363004: Fix the painting of document markers under zoom and variable DPI (Closed)
Patch Set: Rebased 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/spellmarkers/document-markers-zoom-250.html
diff --git a/third_party/WebKit/LayoutTests/paint/spellmarkers/document-markers-zoom-250.html b/third_party/WebKit/LayoutTests/paint/spellmarkers/document-markers-zoom-250.html
new file mode 100644
index 0000000000000000000000000000000000000000..0be0b0346dda1e3fd43ea097763dd5dec00571cf
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/spellmarkers/document-markers-zoom-250.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+ #editable { zoom: 250%; }
+</style>
+<script>
+if (window.testRunner) {
+ testRunner.setMockSpellCheckerEnabled(true);
+}
+
+function runTest() {
+ editable = document.getElementById("editable");
+ selection = document.getSelection();
+ selection.addRange(new Range);
+ range = selection.getRangeAt(0);
+ range.selectNodeContents(editable);
+}
+</script>
+</head>
+<body onload="runTest();">
+ <div id="editable" contenteditable="true">wellcome should be marked</div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698