-
Notifications
You must be signed in to change notification settings - Fork 254
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
feat: add ability to add text stroke #645
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thank you! We need some tests though (check out /tests).
de02436
to
37e40ee
Compare
Sorry for the sudden change. |
Thanks! |
This PR is adding ability to stroke to texts.
fixes: #578
Added 2 properties (
WebkitTextStrokeWidth
,WebkitTextStrokeColor
) and 1 shorthands (WebkitTextStroke
). When stroke is enabled,paint-order: stroke;
andstroke-linejoin: round;
are automatically set to prevent the stroke from obscuring the text.I don't have a deep understanding of all the code so further improvements may be needed.