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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG: Support for <clipPath> #1374

Closed
pbregener opened this issue Jun 3, 2021 · 3 comments
Closed

SVG: Support for <clipPath> #1374

pbregener opened this issue Jun 3, 2021 · 3 comments
Milestone

Comments

@pbregener
Copy link
Contributor

I'm pretty sure you have this on your to-do list already (you mentioned clipping in some blog post and I saw some "todo" in the code), but I thought I'd open an issue anyways 馃槈

For me, this is the last thing missing in terms of SVG support, and it is what currently keeps me on v52 in production. Cairo actually does a great job on the SVG side, but I also can't wait to get rid of it in WeasyPrint!

@pbregener
Copy link
Contributor Author

Hi @liZe!
Just out of curiosity (and I have no idea how difficult this will be to implement):
Do you plan to have SVG clipping with clipPaths in v53.0, or will that need to wait for later?

@liZe
Copy link
Member

liZe commented Jun 14, 2021

Do you plan to have SVG clipping with clipPaths in v53.0, or will that need to wait for later?

A couple of moths ago, we already tried to implement clip paths with the same features as the ones provided by CairoSVG. But that was actually way harder than what we thought, and we let the idea down.

We鈥檒l probably try to add support of clip paths for simple cases before version 53, and we鈥檒l update this issue as soon as we have news about this.

@liZe liZe added this to the 53.0 milestone Jul 16, 2021
@liZe liZe closed this as completed in c7b97fa Jul 18, 2021
@liZe
Copy link
Member

liZe commented Jul 18, 2021

clip-path is now supported, but only for single paths. Handling more complex cases will probably require a lot of time, and we鈥檒l keep that for later.

As we already explained in some comments earlier, SVG support will be improved in future versions, with lots of tests (and probably lots of fixes).

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