tor-browser

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

colrv1-01-ref.html (2759B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <meta charset=utf-8>
      4 <title>COLRv1 font test: comparing against CSS representation</title>
      5 <style>
      6 #ref { font: 0px serif; margin: 10px; padding: 10px; }
      7 #ref > div { width: 100px; height: 100px; display: inline-block; vertical-align: top; }
      8 span { display: inline-block; }
      9 .A { background: rgba(255, 0, 0, 1.0); }
     10 .B { background: rgba(255, 0, 0, 0.5); }
     11 .C { background: rgba(255, 0, 0, 0.1); }
     12 .D { background: linear-gradient(to right, rgb(0, 255, 0), rgb(0, 0, 255)); }
     13 .E { background: linear-gradient(to right, rgb(0, 255, 0) 25%, rgb(0, 0, 255) 75%); }
     14 .F { background: linear-gradient(to right, rgb(0, 255, 0) 25%, rgb(0, 0, 255) 75%); }
     15 .G { background: repeating-linear-gradient(to right, rgb(0, 255, 0) 40%, rgb(0, 0, 255) 60%); }
     16 .H { background: repeating-linear-gradient(to right, rgb(0, 255, 0) 40%, rgb(0, 0, 255) 60%, rgb(0, 255, 0) 80%); }
     17 .I { background: repeating-linear-gradient(to bottom, rgb(0, 255, 0) 40%, rgb(0, 0, 255) 60%, rgb(0, 255, 0) 80%); }
     18 .J { background: radial-gradient(rgb(255, 0, 0), rgb(0, 255, 0), rgb(0, 0, 255) 70.7107%); }
     19 .K { background: repeating-radial-gradient(rgb(255, 0, 0), rgb(0, 255, 0), rgb(0, 0, 255) 70.7107%); }
     20 .L { background: repeating-radial-gradient(rgb(255, 0, 0), rgb(0, 255, 0), rgb(0, 0, 255), rgb(0, 255, 0), rgb(255, 0, 0) 70.7107%); }
     21 .M { background: conic-gradient(rgb(0, 0, 255), rgb(0, 255, 0), rgb(255, 0, 0)); }
     22 .N { background: conic-gradient(rgb(0, 0, 255), rgb(0, 255, 0), rgb(255, 0, 0), rgb(0, 255, 0), rgb(0, 0, 255)); }
     23 .O { background: conic-gradient(rgb(255, 0, 0), rgb(0, 255, 0), rgb(0, 0, 255) 25%, rgb(0, 255, 0), rgb(255, 0, 0)); rotate: 0.25turn; }
     24 .P :nth-child(1) { background: rgb(0, 0, 255); width: 100%; height: 50%; }
     25 .P :nth-child(2) { background: rgb(255, 0, 0); width: 50%; height: 50%; }
     26 .P :nth-child(3) { background: rgb(0, 255, 0); width: 50%; height: 50%; }
     27 .Q { background: rgba(0, 255, 0); }
     28 .Q :nth-child(1) { background: rgb(255, 0, 0); width: 50%; height: 50%; translate: 50% 50%; rotate: 45deg; }
     29 .R { background: rgba(0, 0, 255); }
     30 .R :nth-child(1) { background: rgb(255, 0, 0); width: 50%; height: 50%; translate: 50% 50%; transform: skew(30deg); }
     31 .S { background: rgba(255, 0, 0); }
     32 .S :nth-child(1) { background: rgb(0, 255, 0); width: 50%; height: 50%; translate: 50% 50%; transform: skew(0, 30deg); }
     33 .T { background: rgba(0, 255, 0); }
     34 .T :nth-child(1) { background: rgb(0, 0, 255); width: 50%; height: 50%; translate: 50% 50%; transform: skew(-20deg, -20deg); }
     35 </style>
     36 
     37 <p>COLRv1 font rendering:</p>
     38 <div id="ref"><div><span></span><span></span><span></span></div></div>
     39 
     40 <script>
     41 ref.firstChild.classList = window.location.hash.substr(1);
     42 document.documentElement.classList = "";
     43 </script>