| <!DOCTYPE html> |
| <script src="../../../resources/run-after-layout-and-paint.js"></script> |
| <script src="../resources/text-based-repaint.js"></script> |
| <script src="../../../editing/editing.js"></script> |
| <input id="root" style="will-change: transform" size="5" value="test test test"> |
| <script> |
| window.testIsAsync = true; |
| onload = runRepaintTest; |
| if (window.internals) |
| internals.settings.setPreferCompositingToLCDTextEnabled(false); |
| |
| function repaintTest() { |
| root.focus(); |
| root.scrollLeft = 200; |
| runAfterLayoutAndPaint(function() { |
| execMoveSelectionForwardByWordCommand(); |
| execMoveSelectionForwardByWordCommand(); |
| execMoveSelectionForwardByWordCommand(); |
| finishRepaintTest(); |
| }); |
| } |
| </script> |