summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/invalidate-paint-in-iframe-in-composited-layer.html
blob: a91a3878373c433a72b9b757ea396d423c08f68d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
<script src="resources/text-based-repaint.js"></script>
<script>
window.onload = function() {
    runRepaintTest();
};

function repaintTest() {
    document.getElementsByTagName('iframe')[0]
        .contentDocument
        .getElementsByTagName('div')[0]
        .style
        .backgroundColor = 'green';
}
</script>
</head>
<div style="height: 400px"></div>
<div style="height: 200px; width: 200px; transform: translateZ(0)">
    <iframe srcdoc="<div style='height: 50px; width: 50px; background-color: red;'></div>"></iframe>
</div>