-
Notifications
You must be signed in to change notification settings - Fork 33
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
Doesn't seem to work in Opera (or Opera Mobile) #20
Comments
I think this fork https://github.com/registerguard/js-media-queries works on opera. I think it works because it tries using both the font-family and pseudo content. So for this repo to support opera it would have to take a similar approach. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It works in neither Opera on the desktop, Opera Mobile (different one), or Opera Mobile on desktop (oh yeah, there's that too).
Quite possibly, because finding the font-family for the html element in Opera always returns the resolved font-family, and a family like "small" or "medium", as is common practise in this scenario, doesn't exist and reverts to whatever font is default for the browser. In Android that would be Roboto, on desktop (Windows) its Times New Roman.
Is there a way to tell Opera to fetch the declared font-family for an element? Then that would fix it for Opera (for desktop / for Android / Mobile).
/edit
Removed mentioning Opera for Android. Works fine there.
The text was updated successfully, but these errors were encountered: