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

LibWeb/SVG: Skip unnwanted transformations on clip-path #3178

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Gingeh
Copy link
Contributor

@Gingeh Gingeh commented Jan 8, 2025

Fixes #1624.
Also fixes the logo on https://sdr-podcast.com/ and the banners on https://neal.fun/.

I'm not 100% certain this is the best fix, but I made a test file (included in this PR) which covers all places in the tree that a clip path and target can be transformed.
Transformed clip-paths are still incorrect when using clipPathUnits="objectBoundingBox", I suspect it's because the outer transformations are applied after it is scaled (I will open an issue if this is merged).

@Gingeh Gingeh force-pushed the clip-path-transform branch from 2a2b0a1 to 388289e Compare January 8, 2025 11:28
@Gingeh Gingeh force-pushed the clip-path-transform branch from 388289e to 7a6fcb4 Compare January 8, 2025 22:35
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.

SVG clipPath is transformed twice
1 participant