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

Countdown breaks with zoom level different than 100% #50

Closed
henriquecm opened this issue May 21, 2021 · 7 comments
Closed

Countdown breaks with zoom level different than 100% #50

henriquecm opened this issue May 21, 2021 · 7 comments

Comments

@henriquecm
Copy link

After every transition the offset increases a little.

Only the Large text example seems to be working correctly a different zoom levels.

image

@saadeghi saadeghi added the bug label May 21, 2021
@saadeghi
Copy link
Owner

@henriquecm Honestly, I haven't seen it in different zoom levels before. Thanks for reporting!
The style and sizes are logically correct and I don't know why this happens. I will test more things to see if there's a way to fix.

@saadeghi
Copy link
Owner

bad news, it's an old bug on chromium

I should probably look for another approach.

@Celant
Copy link

Celant commented Sep 22, 2021

Hey @saadeghi! Did you manage to find an alternative way to handle this?

@saadeghi
Copy link
Owner

No. The only way would be using a long list of numbers in HTML instead of using :before. Something like:

<span class="countdown">
  <span>01</span>
  <span>02</span>
  <span>03</span>
  .
  .
  .
  <span>99</span>
</span>

And that is not efficient at all 😕

@saadeghi
Copy link
Owner

I don't think there's a way to fix this on webkit I will re-open if I find a way

@saadeghi
Copy link
Owner

saadeghi commented Feb 1, 2022

This bug is now fixed on webkit 🥳
Tested on latest versions of Chrome and Safari (MacOS)

@saadeghi saadeghi removed the wontfix label Feb 1, 2022
@R3D2
Copy link

R3D2 commented Jun 8, 2022

Maybe there is a regression because I have this same problem on webkit.

Also, it's not even showing on some components... Didn't see that at first, I mainly use Firefox.

IMG_1542

EDIT : Font was text-2xs, changed to text-xs and it's not glitching anymore

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

4 participants