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

[css-masking] Suggestion: Specify clipPathUnits for CSS clip-path: path #5618

Open
noamr opened this issue Oct 14, 2020 · 4 comments
Open

[css-masking] Suggestion: Specify clipPathUnits for CSS clip-path: path #5618

noamr opened this issue Oct 14, 2020 · 4 comments

Comments

@noamr
Copy link
Collaborator

noamr commented Oct 14, 2020

Currently when using CSS clip-path path(...) as a value, it's assumed to be in pixel coordinates rather than in relative coordinates. In SVG, that's handled by clipPathUnits attribute of clipPath. However, there is no current way to specify that for CSS clip-path: path(...). This creates a situation where many scalable paths require using an SVG ref instead of the path syntax.

@noamr noamr changed the title [css-masking] Specify clipPathUnits for CSS clip-path: path [css-masking] Suggestion: Specify clipPathUnits for CSS clip-path: path Oct 14, 2020
@stof
Copy link

stof commented Jan 10, 2022

This would make it a lot easier to use clip-path: path() in a responsive context

@noamr
Copy link
Collaborator Author

noamr commented Jan 10, 2022

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

@stof
Copy link

stof commented Jan 10, 2022

This links looks weird. It shows an Apache index page instead of a spec.

@SebastianZ
Copy link
Contributor

The server is currently down. See #6725.

Sebastian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants