Chromium Code Reviews| 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> |
| + <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> |