summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fullscreen/api/element-request-fullscreen-svg-svg.html
blob: e579f6e7d7292755590a7aa5b4264aa78cfd7ded (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<title>Element#requestFullscreen() for SVG svg element</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="../trusted-click.js"></script>
<div id="log"></div>
<svg></svg>
<script>
    promise_test(async (t) => {
        const svg = document.querySelector("svg");
        assert_true(svg instanceof SVGSVGElement);
        document.onfullscreenerror = t.unreached_func("fullscreenerror event");
        await Promise.all([
            fullScreenChange(),
            trusted_request(svg),
        ]);
    });
</script>