font-variant-numeric-03.html (1220B)
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-numeric: oldstyle-nums; low level equivalence</title> 5 <link rel="author" title="Chris Lilley" href="chris@w3.org"> 6 <link rel="match" href="font-variant-numeric-03-ref.html"> 7 <link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-variant-numeric-prop"> 8 <link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-feature-settings-prop"> 9 <meta name="assert" content="Enables display of old-style numerals (OpenType feature: onum). "> 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-numeric: oldstyle-nums; 22 } 23 .low { 24 font-feature-settings: "lnum" off, "onum" on, "pnum" off, "tnum" off, "frac" off, "afrc" off, "ordn" off, "zero" off; 25 } 26 27 28 </style> 29 <body> 30 <p>Test passes if the three lines below are identical, with one cross (✗), then one check mark (✓) followed by six crosses (✗). </p> 31 <section class="test"> 32 <p class="high">PQRSTUVW</p> 33 <p class="low">PQRSTUVW</p> 34 <p class="ref">BABBBBBB</p> 35 </section>