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

Incorrect font size calculation #12

Open
rogden opened this issue May 23, 2013 · 0 comments
Open

Incorrect font size calculation #12

rogden opened this issue May 23, 2013 · 0 comments

Comments

@rogden
Copy link

rogden commented May 23, 2013

Following the documentation on the site, when setting the @base-font-size variable to your calculated body font size and calling the .font-size-rems() mixin, the incorrect font-size is being computed.

Steps:

  1. Set the @base-font-size variable to 14 (no units as stated in the docs)
  2. Set your body font-size to 87.5% (targeting a 14px font-size here)
  3. Set an h1 font-size property to .font-size-rems(24)
  4. Declare an h1 element in your markup
  5. Inspect the computed font size. It is 27px.

Expected:
The computed font size should be 24px;

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

1 participant