wpt / css / css-fonts / synthetic-oblique-out-of-capabilities-range.html

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

/css/css-fonts/synthetic-oblique-out-of-capabilities-range.html

<!DOCTYPE html>
<meta charset="utf-8"/>
<title>Tests that font-style with angle outside of the 'slnt' range support by the font does not synthesize oblique faces.</title>
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#font-prop-desc">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/7999">
<link rel="match" href="synthetic-oblique-out-of-capabilities-range-ref.html">
<link rel="assert" title="Tests that of out of the range font-style values for variable fonts does not cause synthetic obliqueing.">
<style>
    @font-face {
        font-family: "Inter";
        src: url('support/fonts/Inter-VF.subset.ttf');
    }
    .style60 {
        font-family: "Inter";
        font-size: 3em;
        font-style: oblique 60deg;
    }
</style>

<p class="style60">text</p>

/css/css-fonts/synthetic-oblique-out-of-capabilities-range-ref.html

<!DOCTYPE html>
<meta charset="utf-8"/>
<title>Tests that font-style with angle outside of the 'slnt' range support by the font does not synthesize oblique faces.</title>
<style>
    @font-face {
        font-family: "Inter";
        src: url('support/fonts/Inter-VF.subset.ttf');
    }
    .style10 {
        font-family: "Inter";
        font-size: 3em;
        font-style: oblique 10deg;
    }
</style>

<p class="style10">text</p>