Skip to content
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

[unconfirmed] Older BlackBerry treats rem units as em #28

Open
johnholtripley opened this issue Jun 1, 2012 · 2 comments
Open

[unconfirmed] Older BlackBerry treats rem units as em #28

johnholtripley opened this issue Jun 1, 2012 · 2 comments

Comments

@johnholtripley
Copy link

I've noticed on older BlackBerry (Using a 9000 on 4.0 OS) that when an element has line height set with rem, the browser seems to render it as if it were set with em units.
For example,
h1 {
font-size: 46px; line-height: 50px;
font-size: 4.6rem; line-height: 5.0rem;
}
Setting the size and line-height in px for other browsers that don't support rem, and then overriding them with rem values seems to work for every other device so far, it just seems to be this older BlackBerry OS that is trying to render the rem (at em values).
This is possibly an issue for other properties - not just line-height.

@scottjehl
Copy link
Owner

ouch. keep us advised!

@johnholtripley
Copy link
Author

Just run into this issue again, and it's not a great solution, but putting all the declarations that used rem units inside a @media only all { } statement meant that it didn't read them, so at least the site didn't look broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants