- From: Noam Rosenthal via GitHub <sysbot+gh@w3.org>
- Date: Tue, 14 Jan 2025 18:55:11 +0000
- To: public-css-archive@w3.org
> [@noamr](https://github.com/noamr) Good news! > > I'm writing a tool to convert SVG path to CSS shape(). Yay! Do share. > SVGs exported by design tools are usually `absolute path`, do we have to convert them to `relative path` before using shape() in order to be responsive? > > e.g. > > ``` > M269 0l190.212 78.788L538 269l-78.788 190.212L269 538 78.788 459.212 0 269 78.788 78.788z > ``` It depends on what you want to achieve. If you want the shape to merely be a *scalable* version of the SVG path, you can pick a view-box for the path and convert everything to `%`. If you want parts to be in %, other parts to be in px and other parts to be a `calc(80% - 10vh)` or what not you'd have to make your own decisions :) -- GitHub Notification of comment by noamr Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5618#issuecomment-2590876857 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:55:12 UTC