tor-browser

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

font-palette-30-ref.html (1131B)


      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 <style>
     10 @font-face {
     11    font-family: "COLR-test-font1";
     12    src: url("resources/COLR-palettes-test-font.ttf") format("truetype");
     13 }
     14 
     15 @font-face {
     16    font-family: "COLR-test-font2";
     17    src: url("resources/COLR-palettes-test-font.ttf") format("truetype");
     18 }
     19 
     20 @font-palette-values --MyPalette1 {
     21    font-family: "COLR-test-font1";
     22    base-palette: 3;
     23 }
     24 
     25 @font-palette-values --MyPalette2 {
     26    font-family: "COLR-test-font2";
     27    base-palette: 2;
     28 }
     29 </style>
     30 </head>
     31 <body>
     32 <div id="target" style="font-size: 48px;"><div style="display: inline-block; width: 1px; height: 100px;"></div><span style="font-family: 'COLR-test-font1'; font-palette: --MyPalette1;">A</span><span style="font-family: 'COLR-test-font2'; font-palette: --MyPalette2;">A</span></div>
     33 </body>
     34 </html>