font-variant-alternates-06.html (1577B)
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: styleset(); low level equivalence</title> 5 <link rel="author" title="Chris Lilley" href="chris@w3.org"> 6 <link rel="match" href="font-variant-alternates-06-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 <link rel="help" href="https://drafts.csswg.org/css-fonts/#font-feature-values"> 10 <meta name="assert" content="Enables display with stylistic sets (font specific, OpenType feature: ss<feature-index>"> 11 <style> 12 @font-face { 13 font-family: fwf; 14 src: url(support/fonts/FontWithFancyFeatures.otf); 15 } 16 @font-feature-values fwf { 17 @styleset { 18 foo: 1; 19 bar: 2; 20 baz: 3; 21 } 22 } 23 .test { 24 font-family: fwf; 25 font-size: 2em; 26 line-height: 1.1; 27 font-variant-alternates: styleset(doesnt-exist); 28 } 29 .high { 30 font-variant-alternates: styleset(foo); 31 } 32 .low { 33 font-feature-settings: "hist" off, "salt" 00, "ss01" on, "ss02" off, "ss03" off, 34 "cv01" off, "cv02" off, "cv03" off, "swsh" 00, "cswh" 00, "ornm" 00, "nalt" 00; 35 } 36 </style> 37 <body> 38 39 <p>Test passes if the three lines below are identical, with four crosses (✗), one check mark (✓) followed by fifteen crosses (✗). </p> 40 <section class="test"> 41 <p class="high">Xnophijklmqrstuvwxyz</p> 42 <p class="low">Xnophijklmqrstuvwxyz</p> 43 <p class="ref">BBBBABBBBBBBBBBBBBBB</p> 44 </section>