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

fix: calculate ex ratio correctly #1607

Merged
merged 1 commit into from
Mar 22, 2022
Merged

fix: calculate ex ratio correctly #1607

merged 1 commit into from
Mar 22, 2022

Conversation

aschmitz
Copy link
Contributor

We had lost a negative sign accidentally in 4833bf6. Sorry about that!

I couldn't come up with a good way to test this off the top of my head especially given that it seems we can't necessarily rely on the testing font being available for use since we don't yet support @font-face in these computed values.

We had lost a negative sign accidentally in
4833bf6.
@liZe
Copy link
Member

liZe commented Mar 22, 2022

Thank you.

I couldn't come up with a good way to test this off the top of my head especially given that it seems we can't necessarily rely on the testing font being available for use since we don't yet support @font-face in these computed values.

Yes, that’s a problem with no perfect solution right now. We could at least test that the ex and ch units give "suitable" values to avoid obvious problems like this one. I’ll add these tests.

@liZe liZe merged commit b6522bd into Kozea:master Mar 22, 2022
@grewn0uille grewn0uille added this to the 55.0 milestone Apr 4, 2022
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

Successfully merging this pull request may close these issues.

3 participants