Status: PASS | Duration: 9ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-fonts/font-variation-settings-descriptor-01.html
<!DOCTYPE html> <html lang="en"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>CSS Test: font-variation-settings descriptor</title> <link rel="author" title="Sejal Anand" href="mailto:sejalanand@microsoft.com"> <link rel="help" href="https://drafts.csswg.org/css-fonts-4/#font-rend-desc"> <link rel="match" href="font-variation-settings-descriptor-01-ref.html"> <meta name="assert" content="slant feature should be handled with font-variation-settings defined as font-face rule."> <style> @font-face { font-family: "slant"; src: url(variations/resources/Inter.var.subset.ttf); font-variation-settings: 'slnt' -20; } .slantOn { font-family: slant; } </style> <body> <p>Test passes if the line below has slanted text.</p> <div class="slantOn"> <span>filler text</span> </div> </body> </html>
/css/css-fonts/font-variation-settings-descriptor-01-ref.html
<!DOCTYPE html> <html lang="en"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>CSS Test: font-variation-settings descriptor</title> <style> @font-face { font-family: "slant"; src: url(variations/resources/Inter.var.subset.ttf); } .slantOn { font-family: slant; font-variation-settings: 'slnt' -20; } </style> <body> <p>Test passes if the line below has slanted text.</p> <div class="slantOn"> <span>filler text</span> </div> </body> </html>