Skip to content

Truly independent web browser

731 B
Raw Blame
<!DOCTYPE html>
<head>
<title>Performance Paint Timing Test: FCP due to opacity</title>
<style>
    #main {
        width: 100px;
        height: 100px;
        left: 0px;
        position: relative;
        top: 0;
        background-image: url(../resources/circles.png);
        opacity: 0;
    }

    /* contentful class is defined in test_fcp script. */
    #main.contentful {
        opacity: 0.1;
    }
</style>
</head>
<body>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../resources/utils.js"></script>
<div id="main"></div>
<script>
    test_fcp("First contentful paint fires due to opacity-revealed element.");
</script>
</body>
</html>