font-variation-settings-descriptor-02.html (951B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 4 <title>CSS Test: font-variation-settings descriptor</title> 5 <link rel="author" title="Sejal Anand" href="mailto:sejalanand@microsoft.com"> 6 <link rel="help" href="https://drafts.csswg.org/css-fonts-4/#font-rend-desc"> 7 <link rel="match" href="font-variation-settings-descriptor-02-ref.html"> 8 <meta name="assert" content="The 'wght' feature should be resolved, and the CSS property should take precedence over font-variation-settings defined in the @font-face descriptor."> 9 <style> 10 @font-face { 11 font-family: "wght"; 12 src: url(variations/resources/Inter.var.subset.ttf); 13 font-variation-settings: 'wght' 100; 14 } 15 .wghtHalf { 16 font-family: wght; 17 font-variation-settings: 'wght' 50; 18 } 19 </style> 20 <body> 21 <p>Test passes if the line below has lighter text.</p> 22 <div class="wghtHalf"> 23 <span>filler text</span> 24 </div> 25 </body> 26 </html>