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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/caret-change-paint-offset-keep-visual.html

Issue 2736213002: Fix caret paint invalidation issues (Closed)
Patch Set: - Created 3 years, 9 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-change-paint-offset-keep-visual.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/caret-change-paint-offset-keep-visual.html b/third_party/WebKit/LayoutTests/paint/invalidation/caret-change-paint-offset-keep-visual.html
new file mode 100644
index 0000000000000000000000000000000000000000..b9a1c262e05f216220fb9c8122cc2fac18623b0e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/caret-change-paint-offset-keep-visual.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<div id="container" style="position: relative; overflow: hidden; width: 200px; height: 100px">
+<div style="width: 400px; height: 2px"></div>
+&nbsp;&nbsp;<input style="position: relative; top: 0; left: 0" id="input">
+</div>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script>
+onload = function() {
+ input.focus();
+ runAfterLayoutAndPaint(function() {
+ container.scrollLeft = 56;
chrishtr 2017/03/08 17:36:06 Does this layout test exercise the code about isIm
Xianzhu 2017/03/08 19:38:22 Yes. Line 11 and 12 creates a situation that the i
+ input.style.left = '56px';
+ }, true);
+};
+</script>

Powered by Google App Engine
This is Rietveld 408576698