slnt-variable.html (1069B)
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-variable-ref.html"> 8 <meta name="assert" 9 content="For variable fonts, 'oblique' and 'italic' keywords should work equivalent to 14 degrees of slant"> 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-VF.woff2'); 16 font-style: oblique 0deg 15deg; 17 } 18 19 .test { 20 font-family: "slnt test font"; 21 font-size: 3em; 22 } 23 24 .oblique { 25 font-style: oblique; 26 } 27 28 .italic { 29 font-style: italic; 30 } 31 32 </style> 33 34 <p class="test oblique">varfont</p> 35 <p class="test italic">varfont</p> 36 <p class="test">varfont</p>