font-palette-non-ident-font-family.html (676B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Tests that a non-ident font family name is handled correctly</title> 6 <link rel="help" href="https://drafts.csswg.org/css-fonts/#font-family-2-desc"> 7 <link rel="author" title="Matthieu Dubet" href="mailto:m_dubet@apple.com"> 8 <link rel="match" href="font-palette-non-ident-font-family-ref.html"> 9 <style> 10 @font-face { 11 font-family: "foo bar"; 12 src: url("resources/COLR-palettes-test-font.ttf") format("truetype"); 13 } 14 15 @font-palette-values --MyPalette { 16 font-family: "foo bar"; 17 base-palette: 1; 18 } 19 </style> 20 </head> 21 <body> 22 <div style="font: 48px 'foo bar'; font-palette: --MyPalette;">A</div> 23 </body> 24 </html>