tor-browser

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

font-synthesis-05.html (972B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
      4 <title>CSS Test:  font-synthesis: initial value</title>
      5 <link rel="author" title="Chris Lilley" href="chris@w3.org">
      6 <link rel="match" href="font-synthesis-05-ref.html">
      7 <link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-synthesis-prop">
      8 <meta name="assert" content="This property controls whether user agents are allowed to synthesize bold or oblique font faces">
      9 <style>
     10    @font-face {
     11 			font-family: "test";
     12 			src: url(/fonts/Lato-Medium.ttf);
     13 		}
     14    @supports not (font-synthesis: weight style) {
     15        .test p {color: red;}
     16    }
     17    .test {
     18 			font-family: "test";
     19 			font-size: 3em;
     20                font-synthesis: weight style;
     21                color: green;
     22 		}
     23 </style>
     24 
     25 <p>Test passes if the text below is green, not red.</p>
     26 <section class="test">
     27    <p>Filler text</p>
     28    <!-- Synthesis is allowed, but not required -->
     29 </section>