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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/move-caret-in-container-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/move-caret-in-container-change-paint-offset-keep-visual.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/move-caret-in-container-change-paint-offset-keep-visual.html b/third_party/WebKit/LayoutTests/paint/invalidation/move-caret-in-container-change-paint-offset-keep-visual.html
new file mode 100644
index 0000000000000000000000000000000000000000..a48dee19747bf7adc192ca13d99179157cd1b914
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/move-caret-in-container-change-paint-offset-keep-visual.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<div id="fixed" style="position: fixed; width: 0; height: 0; top: 200px; left: 100px">
+ <div id="child" style="position: relative">
+ <!-- This is to isolate layout -->
+ <div style="width: 200px; height: 200px; overflow: hidden">
+ <div id="editable" contenteditable="true" style="outline: none; margin: 10px; width: 100px">ABCDE</div>
+ </div>
+ </div>
+</div>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+function repaintTest() {
+ fixed.style.top = '100px';
+ child.style.top = '100px';
+ getSelection().collapse(editable.firstChild, 4);
+}
+
+onload = function() {
+ editable.focus();
+ runAfterLayoutAndPaint(repaintTest, true);
+};
+</script>

Powered by Google App Engine
This is Rietveld 408576698