Skip to content

v4: hidden-xs-down mismatch with hidden-sm-up #17757

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

Closed
wnr opened this issue Oct 2, 2015 · 1 comment
Closed

v4: hidden-xs-down mismatch with hidden-sm-up #17757

wnr opened this issue Oct 2, 2015 · 1 comment
Labels

Comments

@wnr
Copy link

wnr commented Oct 2, 2015

There's one pixel between xs-down and sm-up that makes the following case not working as expected:

<div class="hidden-xs-down hidden-sm-up">...</div>

Expected is that the div will never be visible.

If font size is 16px, the div will be visible at 543 px.

sm: 16*33.9 = 542.4 px
sm: 16*34 = 544 px

This same error occurs with hidden-sm-down hidden-md-up, etc.

@cvrebert
Copy link
Collaborator

cvrebert commented Oct 2, 2015

As of #17403, we now use pixels instead of ems, which should fix this problem.
Please re-test against current the v4-dev branch. Happy to reopen this if some variation of the problem still exists.

@cvrebert cvrebert closed this as completed Oct 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants