slnt-backslant-variable.html (1201B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <meta charset="utf-8" /> 4 <title>CSS Test: Variable fonts with slant axis</title> 5 <link rel="help" href="https://www.w3.org/TR/css-fonts-4/#descdef-font-face-font-variation-settings" /> 6 <link rel="help" href="http://drafts.csswg.org/css-fonts-4/#valdef-font-style-oblique-angle-90deg-90deg" /> 7 <link rel="match" href="slnt-backslant-variable-ref.html"> 8 <meta name="assert" 9 content="For variable fonts, setting font-style to oblique or italic should apply forward and backward slant to variable axis."> 10 <!-- Fonts used in this test are authored by Stephen Nixon, more information in the link: 11 https://arrowtype.github.io/vf-slnt-test/index.html --> 12 <style> 13 @font-face { 14 font-family: "slnt test font"; 15 src: url('resources/FontStyleTest-slnt_backslant-VF.woff2'); 16 font-style: oblique -15deg 15deg; 17 } 18 19 .test { 20 font-family: "slnt test font"; 21 font-size: 3em; 22 } 23 24 .backslant { 25 font-style: oblique -14deg; 26 } 27 28 .oblique { 29 font-style: oblique; 30 } 31 32 .italic { 33 font-style: italic; 34 } 35 36 </style> 37 38 <p class="test backslant">varfont</p> 39 <p class="test oblique">varfont</p> 40 <p class="test italic">varfont</p> 41 <p class="test">varfont</p>