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 unwanted 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 4 times, most recently from 1f89173 to 8d9eb91 Compare January 10, 2025 09:37
@Gingeh Gingeh changed the title LibWeb/SVG: Skip unnwanted transformations on clip-path LibWeb/SVG: Skip unwanted transformations on clip-path Jan 10, 2025
@Gingeh Gingeh force-pushed the clip-path-transform branch 5 times, most recently from 38c6f1e to 2c213b1 Compare January 17, 2025 01:17
@Gingeh Gingeh force-pushed the clip-path-transform branch 3 times, most recently from b77ad09 to 1d4ada9 Compare January 21, 2025 10:19
@Gingeh Gingeh force-pushed the clip-path-transform branch from 1d4ada9 to 45f109d Compare January 21, 2025 23:33
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