tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

font-palette-31.html (1036B)


      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-31-ref.html">
     10 <style>
     11 @font-face {
     12    font-family: "COLR-test-font1";
     13    src: url("resources/COLR-palettes-test-font.ttf") format("truetype");
     14    unicode-range: U+41;
     15 }
     16 
     17 @font-face {
     18    font-family: "COLR-test-font2";
     19    src: url("resources/COLR-palettes-test-font.ttf") format("truetype");
     20 }
     21 
     22 @font-palette-values --MyPalette {
     23    font-family: "COLR-test-font1";
     24    base-palette: 5;
     25 }
     26 
     27 @font-palette-values --MyPalette {
     28    font-family: "COLR-test-font2";
     29    base-palette: 2;
     30 }
     31 </style>
     32 </head>
     33 <body>
     34 <div style="font: 48px 'COLR-test-font1', 'COLR-test-font2', Helvetica; font-palette: --MyPalette;">ABCDEF</div>
     35 </body>
     36 </html>