font-variant-position-02.html (1177B)
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-position: sub; 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-position-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-position-02-ref.html"> 9 <meta name="assert" content="Enables display of subscript variants (OpenType feature: subs)."> 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: 3em; 18 line-height: 1.1; 19 } 20 .high { 21 font-variant-position: sub; 22 } 23 .low { 24 font-feature-settings: "subs" on, "sups" off; 25 } 26 </style> 27 <body> 28 <p>Test passes if the three lines below are identical, with two checkmarks (✓); 29 if the first line has a checkmark followed by two normally sized crosses, the test fails. </p> 30 <section class="test"> 31 <p>A<span class="high">H</span></p> 32 <p>A<span class="low">H</span></p> 33 <p class="ref">AA</p> 34 </section>