wpt / css / css-fonts / font-weight-normal-variable.html

Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-fonts/font-weight-normal-variable.html

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8"/>
<title>CSS Test: Variations are applied for font-weight: normal</title>
<link rel="match" href="font-weight-normal-variable-ref.html">
<link rel="author" title="Simon Wülker" href="simon.wuelker@arcor.de">
<link rel="help" href="https://github.com/servo/servo/issues/45748">
<meta name="assert" content="Variations are applied for font-weight: normal">
<style>
    @font-face {
        font-family: "Noto Sans JP";
        src: url('support/fonts/NotoSansJP.subset.ttf') format('truetype');
        font-display: swap;
        font-style: normal;
    }
    .normal {
        font-family: "Noto Sans JP";
        font-size: 3em;
        font-weight: normal;
    }
</style>

<p class="normal">test</p>

/css/css-fonts/font-weight-normal-variable-ref.html

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8"/>
<title>CSS Test: Variations are applied for font-weight: normal</title>
<style>
    @font-face {
        font-family: "Noto Sans JP";
        src: url('support/fonts/NotoSansJP.subset.ttf') format('truetype');
        font-display: swap;
        font-style: normal;
    }
    .normal {
        font-family: "Noto Sans JP";
        font-size: 3em;
        font-variation-settings: "wght" 400;
    }
</style>

<p class="normal">test</p>