blob: 17b1d51ee116c56bf698bd299651d673df40344d [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/run-after-layout-and-paint.js"></script>
onload = function() {
runAfterLayoutAndPaint(function() {
var frame = document.getElementById('frame');
var content = frame.contentDocument.getElementById('content'); = '100px'; = '150px';
}, true);
Tests paint offset adjustment of iframe content which is kept the original location when the iframe moves.
Passes if the blue block stays at the same place after repaint.
<iframe id="frame" style="position: absolute; top: 200px; width: 300px; height: 300px"
srcdoc="<div id='content' style='position: absolute; top: 50px; width: 100px; height: 100px; background-color: blue'></div>">