font-palette-13.html (770B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Tests for font-palette and @font-palette-values</title> 6 <link rel="help" href="https://drafts.csswg.org/css-fonts/#font-palette-prop"> 7 <link rel="help" href="https://drafts.csswg.org/css-fonts-4/#font-palette-values"> 8 <link rel="author" title="Myles C. Maxfield" href="mailto:mmaxfield@apple.com"> 9 <link rel="mismatch" href="font-palette-13-notref.html"> 10 <style> 11 @font-face { 12 font-family: "COLR-test-font"; 13 src: url("resources/COLR-palettes-test-font.ttf") format("truetype"); 14 } 15 16 @font-palette-values --MyPalette { 17 font-family: "COLR-test-font"; 18 base-palette: 6; 19 } 20 </style> 21 </head> 22 <body> 23 <div id="target" style="font: 48px 'COLR-test-font'; font-palette: --MyPalette;">A</div> 24 </body> 25 </html>