font-variant-alternates-02.html (1304B)
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-alternates: historical-forms; low level equivalence</title> 5 <link rel="author" title="Chris Lilley" href="chris@w3.org"> 6 <link rel="match" href="font-variant-alternates-02-ref.html"> 7 <link rel="help" href="https://www.w3.org/TR/css-fonts-4/#font-variant-alternates-prop"> 8 <link rel="help" href="https://www.w3.org/TR/css-fonts-4/#font-feature-settings-prop"> 9 <meta name="assert" content="Enables display of historical forms (OpenType feature: hist)"> 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: 2em; 18 line-height: 1.1; 19 } 20 .high { 21 font-variant-alternates: historical-forms; 22 } 23 .low { 24 font-feature-settings: "hist" on, "salt" 00, "ss01" off, "ss02" off, "ss03" off, 25 "cv01" off, "cv02" off, "cv03" off, "swsh" 00, "cswh" 00, "ornm" 00, "nalt" 00; 26 } 27 </style> 28 <body> 29 30 <p>Test passes if the three lines below are identical, with one check mark (✓) followed by nineteen crosses (✗). </p> 31 <section class="test"> 32 <p class="high">Xnophijklmqrstuvwxyz</p> 33 <p class="low">Xnophijklmqrstuvwxyz</p> 34 <p class="ref">ABBBBBBBBBBBBBBBBBBB</p> 35 </section>