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

Text-stroke and Paint-order support #1540

Closed
wants to merge 4 commits into from

Conversation

spacedevin
Copy link

This ads support for -webkit-text-stroke, -webkit-text-stroke-width, -webkit-text-stroke-color, and paint-order.

Note that even through these are webkit prefixes, Firefox still uses them.

paint-order is required in order to get strokes to render as an outline of the text and not in the middle.

paint-order does not currently work fully in chrome, as chrome reads the value of the property, but does not apply it in the dom. Firefox and Safari work just fine.

See tests/text/stroke.html for an example


Fixes #759 and #1108

@ivictbor
Copy link

ivictbor commented Nov 8, 2020

Thanks a lot @arzynik , I've published your branch to npm: https://www.npmjs.com/package/html2canvas-stroke , it unblocked https://github.com/devforth/painterro text-stroke feature (though html2canvas-stroke is very updated, probably someone has time capacity to merge a new changes or needs this, poke me)

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.

Is there no support for -webkit-text-stroke
2 participants