subsuper-nofallback-ref2.html (788B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>font-variant-position fallback</title> 5 <meta charset="UTF-8"> 6 <style> 7 8 /* sups: 0-9 + - ( ) = subs: 0-9 + - ( ) */ 9 @font-face { 10 font-family: subsuper; 11 src: url(../fonts/subsuper-nofeat.woff); /* FiraSans with blank omega */ 12 } 13 14 body { 15 margin: 20px; 16 font-family: subsuper, sans-serif; 17 } 18 19 p { 20 margin: 0; 21 font-size: 75px; 22 } 23 h4 { font-weight: normal } 24 25 </style> 26 </head> 27 <body> 28 <h4>All the subscripts and superscripts should display with variant glyphs:</h4> 29 <p> 30 <span class=sub>₃</span>C<span class=super>²</span> 31 <span class=sub>₍₃₎</span>C<span class=super>⁽²⁾</span> 32 <span class=sub>₂₁₊₃</span>C<span class=super>⁴⁵</span> 33 </p> 34 </body> 35 </html>