fontface-descriptor-updates-ref.html (701B)
1 <!DOCTYPE html> 2 <meta charset=utf-8> 3 <title>CSS Font Loading reference: modification of descriptors</title> 4 <style> 5 @font-face { font-family: test; src: url(resources/GenR102.woff2); } 6 @font-face { font-family: test; font-style:italic; src: url(resources/GenI102.woff2); } 7 body { font-family: sans-serif; } 8 .test { font-family: test, sans-serif; } 9 </style> 10 <body> 11 <div> 12 All lines below should use the same serif font, with the word "weight" in italics: 13 <p class=test>Using original family name of a FontFace</p> 14 <p class=test>Using updated family name of a FontFace</p> 15 <p class=test>Using updated <i>weight</i> descriptors</p> 16 <p class=test>Using updated unicode-range descriptors</p> 17 </div> 18 </body>