Skip to content

Truly independent web browser

468 B
Raw Blame
<!DOCTYPE html>
<html>
    <style>
        @font-face {
            font-family: Foo;
            src: url("./Foo.woff");
        }
    </style>
    <script src="../include.js"></script>
    <script>
        promiseTest(async () => {
            await document.fonts.ready.then(() => {
                document.styleSheets[0].cssRules[0].style.src = 'url("./Bar.woff")';

                println(document.fonts.size);
            });
        });
    </script>
</html>