font-palette-29.html (1132B)
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="match" href="font-palette-29-ref.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-face { 17 font-family: "COLR-test-font-no-light-dark"; 18 src: url("resources/COLR-palettes-test-font-no-light-dark.ttf") format("truetype"); 19 } 20 21 @font-palette-values --MyPalette { 22 font-family: "COLR-test-font"; 23 base-palette: 3; 24 } 25 26 @font-palette-values --MyPalette { 27 font-family: "COLR-test-font-no-light-dark"; 28 base-palette: 1; 29 } 30 </style> 31 </head> 32 <body> 33 <div id="target" style="font-size: 48px; font-palette: --MyPalette;"><span style="font-family: 'COLR-test-font';">A</span><span style="font-family: 'COLR-test-font-no-light-dark';">A</span></div> 34 </body> 35 </html>