Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / repaint / selection-clear-after-move.html
blobb8ee0d6e61abf0b6ef05686f4b1b380473033726
1 <!DOCTYPE html>
2 <script src="../../resources/run-after-layout-and-paint.js"></script>
3 <script src="resources/text-based-repaint.js"></script>
4 <script>
5 function repaintTest() {
6 getSelection().removeAllRanges();
8 onload = function() {
9 getSelection().selectAllChildren(document.getElementById('div'));
10 runAfterLayoutAndPaint(function() {
11 document.getElementById('div').style.top = '300px';
12 runRepaintTest();
13 });
15 </script>
16 <style>
17 img {
18 vertical-align: text-bottom;
19 width: 50px;
20 height: 50px;
22 div {
23 position: absolute;
24 top: 100px;
25 left: 100px;
27 </style>
28 Tests paint invalidation of selection when its cleared after the container is moved.<br>
29 Passes if no selection left.
30 <div id="div">
31 <img></img>
32 </div>