summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/invalidation-after-opacity-change-subtree.html
blob: 718f7f2bde24b38bae5d7f27b548dc804ef60251 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!doctype html>
<style>
#container {
    opacity: 0;
    font: 10px/1 Ahem;
}

#absolute {
    position: absolute;
    top: 2000px;
    font: 50px/1 Sherif;
}
</style>
<div id="container">
    <div id="absolute">
        <p>This test checks that switching opacity invalidates the full subtree.</p>
        <p>This text should be visible in the output.</p>
    </div>
</div>
<script src="resources/text-based-repaint.js"></script>
<script>

function repaintTest() {
    window.scrollTo(0, 2000);
    container.style.opacity = "1";
};
runRepaintTest();
</script>