-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please explain monospace, monospace one more time :) #519
Comments
ok I just found some more issue dupes and it's a bit clearer now. but I still have one question: if I'm using my own custom font stack that falls back to i.e. font-family: MyCustomMonoFont, monospace, monospace;
// or does this do the job:
font-family: MyCustomMonoFont, monospace; |
I can't remember how many times the The reality is that there's not enough information about which browsers/versions are affected by this bug... and the explanation we link dates from "December 2009". I'll do some testing about this, and try to come up with more specific details. AFIK you're OK with: font-family: MyCustomMonoFont, monospace; |
Major web browsers reduce the text size of elements whose Browsers using Blink, Gecko, and WebKit reduce the size of Browsers using Presto and Trident treat Since they are checking explicitly for a computed value of |
@jonathantneal, awesome! Are we going to add this on the comments/docs? |
This is all very interesting, but can anyone explain why the hack works? I thought comma-separated values for From @jonathantneal’s citation:
|
@chharvey others can correct me if I'm wrong, but I believe the suggestion is that some browsers have a hard coded check for |
Duplicate of #513, but I still don't get this and I'm curious.
I read the source link, but the explanation at the bottom does not seem to recommend
monospace, monospace
. They went formonospace, sans-serif
(not that I understand that any better).What exactly does the duplication solve? Which browsers does this affect, and why does duplicating the font name fix it?
The text was updated successfully, but these errors were encountered: