font-variant-01.html (1437B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 4 <title>CSS Test: font-variant: normal; low level equivalence</title> 5 <link rel="author" title="Chris Lilley" href="chris@w3.org"> 6 <link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-variant-prop"> 7 <link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-feature-settings-prop"> 8 <link rel="match" href="font-variant-01-ref.html"> 9 <meta name="assert" content="The value ‘normal’ resets all subproperties of ‘font-variant’ to their inital value"> 10 <style> 11 @font-face { 12 font-family: fwf; 13 src: url(support/fonts/FontWithFancyFeatures.otf); 14 } 15 .test { 16 font-family: fwf; 17 font-size: 2.4em; 18 line-height: 1.1; 19 color: purple; 20 } 21 .inner { 22 font-variant: normal; 23 } 24 .outer { 25 font-variant-ligatures: common-ligatures discretionary-ligatures historical-ligatures contextual; 26 font-variant-numeric: oldstyle-nums; 27 font-variant-caps: small-caps; 28 font-variant-east-asian: jis90; 29 } 30 .child { 31 color: green; 32 } 33 </style> 34 35 <body> 36 <p>Test passes if the two lines below are identical, with (in purple) eight check marks (✓), 37 and then (in green) three check marks (✓) followed by five crosses (✗). </p> 38 <section class="test"> 39 <p class="outer">CDGFEJQa<span class="inner child">CDGFEJQa</span></p> 40 <p class="ref">AAAAAAAA<span class="child">AAABBBBB</span></p> 41 </section>