Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / repaint / block-selection-gap-stale-cache.html
1 <head>
2     <style>
3         ::selection { background-color: red; }
4     </style>
5     <script src="resources/repaint.js" type="text/javascript" charset="utf-8"></script>
6     <script type="text/javascript" charset="utf-8">
7     function repaintTest()
8     {
9         sel.empty();
10     }
11     </script>
12 </head>
13 <body onload="runRepaintTest()">
14 <div><div id="target" style="display: inline-block; width: 100px; height: 50px;"></div><br></div>&nbsp;
15 <script>
16     var sel = getSelection();
17     var target = document.getElementById("target");
18
19     sel.setBaseAndExtent(target, 0, target.parentElement.nextSibling, 0);
20     document.body.offsetTop;
21     target.style.height = "100px";
22 </script>