wpt / css / css-fonts / remove-loaded-font-face-rule.html

Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-fonts/remove-loaded-font-face-rule.html

<!DOCTYPE html>
<html class="reftest-wait">
    <head>
        <title>Removing a loaded @font-face rule updates layout</title>
        <meta name="assert" content="Removing a loaded @font-face rule updates layout" />
        <link rel="author" title="Simon Wülker" href="simon.wuelker@arcor.de">
        <link rel="stylesheet" href="/fonts/ahem.css">
        <link rel="match" href="remove-loaded-font-face-rule-ref.html">
        <link rel="help" href="https://github.com/servo/servo/issues/46372>"
    </head>
    <body>
        <div style="font-family: Lato, Ahem">This text should be rendered using Ahem</div>
        <style id="target">
            @font-face {
                font-family: Lato;
                src: url("/fonts/Lato-Medium.ttf");
            }
        </style>
        <script>
          document.fonts.ready.then(() => {
            target.remove();

            document.fonts.ready.then(() => {
              document.documentElement.classList.remove("reftest-wait");
            });
          });
        </script>
    </body>
</html>

/css/css-fonts/remove-loaded-font-face-rule-ref.html

<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" href="/fonts/ahem.css">
    </head>
    <body>
        <div style="font-family: Ahem">This text should be rendered using Ahem</div>
    </body>
</html>