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

Added dpcm resolution support and made calc more precise #1380

Merged
merged 1 commit into from Dec 6, 2020
Merged

Added dpcm resolution support and made calc more precise #1380

merged 1 commit into from Dec 6, 2020

Conversation

infusion
Copy link
Contributor

@infusion infusion commented Dec 5, 2020

I added dpcm support for resolution media queries and replaced num2fraction with Fraction.js, which does basically the same but uses Farey Sequences as rational approximation (more precise) and simplifies the fraction using continued fractions to ɛ <0.001 afterwards.

Additional test cases were added as well.

@ai ai merged commit 0765b30 into postcss:main Dec 6, 2020
@ai
Copy link
Member

ai commented Dec 6, 2020

Looks good. Thanks.

@ai
Copy link
Member

ai commented Dec 6, 2020

I will release it (in 10.1 minor release) on the next week since I need to release PostCSS 8.2 first.

@ai
Copy link
Member

ai commented Dec 8, 2020

Released in 10.1

@infusion
Copy link
Contributor Author

infusion commented Dec 8, 2020

Thanks, Andrey!

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.

None yet

2 participants