Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / frame-move-keep-content-location.html
blob17b1d51ee116c56bf698bd299651d673df40344d
1 <!DOCTYPE html>
2 <script src="../../resources/run-after-layout-and-paint.js"></script>
3 <script>
4 onload = function() {
5 runAfterLayoutAndPaint(function() {
6 var frame = document.getElementById('frame');
7 var content = frame.contentDocument.getElementById('content');
8 frame.style.top = '100px';
9 content.style.top = '150px';
10 }, true);
12 </script>
13 Tests paint offset adjustment of iframe content which is kept the original location when the iframe moves.
14 Passes if the blue block stays at the same place after repaint.
15 <iframe id="frame" style="position: absolute; top: 200px; width: 300px; height: 300px"
16 srcdoc="<div id='content' style='position: absolute; top: 50px; width: 100px; height: 100px; background-color: blue'></div>">
17 </iframe>