subsuper-fallback-omega.html (597B)
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.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: 200px; 22 } 23 h4 { font-weight: normal } 24 span.sub { font-variant-position: sub } 25 span.super { font-variant-position: super } 26 </style> 27 </head> 28 <body> 29 <p>e<span class=super>2ω</span></p> 30 <p>e<span class=sub>2ω</span></p> 31 </body> 32 </html>