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

native css variables for this #91

Closed
sakgoyal opened this issue Apr 30, 2024 · 1 comment
Closed

native css variables for this #91

sakgoyal opened this issue Apr 30, 2024 · 1 comment

Comments

@sakgoyal
Copy link

what is the difference in using this package versus just applying the text-wrap : pretty property for text?
using native css should be much more efficient wouldn't it?

@markpinero
Copy link
Contributor

@sakgoyal This package is for cross-browser functionality. If you check Safari's compatibility, it only supports the latest version. And if you check the source code implementation, it checks if text-wrap: balance is supported, it defaults to that rather than the package code. So it does just what you're eluding to!

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

2 participants