subsuper-fallback-size-ref.html 744 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <title>font-variant-position fallback</title>
  5. <meta charset="UTF-8">
  6. <style>
  7. /* sups: 0-9 + - ( ) = subs: 0-9 + - ( ) */
  8. @font-face {
  9. font-family: subsuper;
  10. src: url(../fonts/subsuper.woff); /* FiraSans with blank omega */
  11. }
  12. body {
  13. margin: 20px;
  14. font-family: subsuper, sans-serif;
  15. }
  16. p {
  17. margin: 10px;
  18. font-size: 50px;
  19. line-height: 2;
  20. width: -moz-fit-content;
  21. background: black;
  22. }
  23. h4 { font-weight: normal; }
  24. span { font-size: 0.667em; } /* see NS_FONT_SUB_SUPER_SIZE_RATIO_LARGE */
  25. </style>
  26. </head>
  27. <body>
  28. <h4>The black bars should NOT be the same length</h4>
  29. <p>&nbsp;XXXXXXXXXX&nbsp;</p>
  30. <p>&nbsp;X<span>XXXXXXXX</span>X&nbsp;</p>
  31. <p>&nbsp;X<span>XXXXXXXX</span>X&nbsp;</p>
  32. </body>
  33. </html>