font-variation-settings-descriptor-03.html (1201B)
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-03-ref.html"> 8 <meta name="assert" content="Multiple font variation settings should be handled as font-face rule."> 9 <style> 10 @font-face { 11 font-family: "Roboto"; 12 src: url('support/fonts/RobotoExtremo-VF.subset.ttf') format('truetype'); 13 font-variation-settings: 'wdth' 125, 'opsz' 144, 'wght' 600; 14 } 15 .weight100 { 16 font-family: "Roboto"; 17 font-variation-settings: 'wght' 100; 18 } 19 .weight400 { 20 font-family: "Roboto"; 21 font-variation-settings: 'wght' 400; 22 } 23 .weight900 { 24 font-family: "Roboto"; 25 font-variation-settings: 'wght' 900; 26 } 27 </style> 28 <body> 29 <p>Test passes if the text below maintains the same optical size and width, while weight varies.</p> 30 <p class="weight100">Filler Text</p> 31 <p class="weight400">Filler Text</p> 32 <p class="weight900">Filler Text</p> 33 </body> 34 </html>