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

IE11 font size rendering rem/em calculation bug #13737

Closed
thomaswelton opened this issue Jun 5, 2014 · 0 comments · Fixed by #13738
Closed

IE11 font size rendering rem/em calculation bug #13737

thomaswelton opened this issue Jun 5, 2014 · 0 comments · Fixed by #13738
Labels
Milestone

Comments

@thomaswelton
Copy link
Contributor

See: https://connect.microsoft.com/IE/feedback/details/816709/ie-11-calculating-font-sizes-wrong-when-setting-the-bodys-font-size-in-relative-units

Also in my testing of IE11...
Bootstrap sets the font-size on the html element to 62.5% which should mean that the font-size is 10px.
This is nice as in my own CSS I can easily calculate rem values for font sizes, widths, margins ect.
However in IE11 the computed font-size when using a value like 3.9rem ends up being a pixel value of 38.74px instead of what is should be 39px

If I set the base html font size to be 10px instead of 62.5% rem calculations work as expected.

thomaswelton added a commit to thomaswelton/bootstrap that referenced this issue Jun 5, 2014
@cvrebert cvrebert added the css label Jun 5, 2014
@cvrebert cvrebert changed the title IE11 Font size rendering rem/em calcaultation IE11 Font size rendering rem/em calculation Jun 5, 2014
@cvrebert cvrebert changed the title IE11 Font size rendering rem/em calculation IE11 font size rendering rem/em calculation bug Jun 5, 2014
@mdo mdo added this to the v3.2.0 milestone Jun 8, 2014
@mdo mdo closed this as completed in #13738 Jun 8, 2014
mdo added a commit that referenced this issue Jun 8, 2014
@mdo mdo mentioned this issue Jun 8, 2014
stempler pushed a commit to stempler/bootstrap that referenced this issue Nov 4, 2014
stempler pushed a commit to stempler/bootstrap that referenced this issue Nov 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants