Re: [csswg-drafts] [css-masking] Suggestion: Specify clipPathUnits for CSS clip-path: path (#5618)

> I think this is solved differently now with https://drafts.csswg.org/css-shapes-2/#shape-function

@noamr Can you describe how `shape()` does this? I don't see some description or example in the specification.

This is a problem that has plagued many CSS authors for a long time.

- https://jamesmcgrath.net/scaling-svg-clippath/
- https://css-tricks.com/unfortunately-clip-path-path-is-still-a-no-go/
- https://stackoverflow.com/questions/29495919/how-to-apply-clippath-to-a-div-with-the-clippath-position-being-relative-to-the
- https://stackoverflow.com/questions/31210466/convert-svg-path-data-to-0-1-range-to-use-as-clippath-with-objectboundingbox
- https://stackoverflow.com/questions/53618192/create-responsive-svg-clip-path-making-svg-path-responsive

-- 
GitHub Notification of comment by yisibl
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5618#issuecomment-2590748525 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 14 January 2025 18:05:06 UTC