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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/move-caret-in-container-change-paint-offset-keep-visual.html

Issue 2745793002: 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <div id="fixed" style="position: fixed; width: 0; height: 0; top: 200px; left: 1 00px">
3 <div id="child" style="position: relative">
4 <!-- This is to isolate layout -->
5 <div style="width: 200px; height: 200px; overflow: hidden">
6 <div id="editable" contenteditable="true" style="outline: none; margin: 10 px; width: 100px">ABCDE</div>
7 </div>
8 </div>
9 </div>
10 <script src="../../resources/run-after-layout-and-paint.js"></script>
11 <script src="resources/text-based-repaint.js"></script>
12 <script>
13 function repaintTest() {
14 fixed.style.top = '100px';
15 child.style.top = '100px';
16 getSelection().collapse(editable.firstChild, 4);
17 }
18
19 onload = function() {
20 editable.focus();
21 runAfterLayoutAndPaint(repaintTest, true);
22 };
23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698