Normalize.css: Consider removing `monospace`, `monospace` hack

Created on 25 Aug 2017  Â·  3Comments  Â·  Source: necolas/normalize.css

Historically this has been reported as duplicate / double monospace font at the time of writing 13 times, this issue is not about that, this is about actually removing it as Normalize should no longer require it:

Per https://github.com/necolas/normalize.css/issues/519#issuecomment-197131966

Browsers using Blink, Gecko, and WebKit reduce the size of monospace. Therefore, the monospace,monospace fix applies to Android ≤ 6, Chrome ≤ 49, Firefox ≤ 45, iOS ≤ 9, Opera 15-35, and Safari 5-9. The fix does not work for Safari ≤ 4.

Browsers using Presto and Trident treat monospace normally. Therefore, the monospace,monospace fix is not required for Edge 12-13, Internet Explorer 8-11, Opera ≤ 12.15, and Windows Phone ≤ 8.1.

Based on browser usage here: https://caniuse.com/usage-table:

  • Android ≤ 6: 2.01% (This is based on ≤ 5, there's no data on v6 /shrug)
  • Chrome ≤ 49: 1.41%
  • Firefox ≤ 45: 0.43%
  • iOS ≤ 9: 0.09%
  • Opera 15-35: 0.27%
  • Safari 5-9: 0.23%

Browser usage that is affected by this issue is pretty low, what would the threshold be for this to be considered to no longer be required by Noormalize?

Most helpful comment

Chrome for macOS is one popular browser that still needs this

All 3 comments

I believe that the version numbers given were just the latest releases that existed at the time (the comment was posted on March 16, 2016), rather than hard upper bounds on which versions are affected. As of Firefox 55.0.1, font-family: monospace still behaves differently from font-family: monospace, foo; the former being displayed smaller.

I also can attest to this as the monospace, monospace hack still fixes the bug (? or feature?) in Chrome v61 for macOS Sierra. The browser versions in https://github.com/necolas/normalize.css/issues/519#issuecomment-197131966 should be updated.

Chrome for macOS is one popular browser that still needs this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FDiskas picture FDiskas  Â·  3Comments

ShaggyDude picture ShaggyDude  Â·  7Comments

denis-sokolov picture denis-sokolov  Â·  4Comments

SteveALee picture SteveALee  Â·  7Comments

Sky161 picture Sky161  Â·  6Comments