W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2020

Re: [csswg-drafts] [css-shapes] Find a way to create a polygon with rounded-corners and non-absolute coordinates (#5674)

From: Mike Bremford via GitHub <sysbot+gh@w3.org>
Date: Thu, 29 Oct 2020 08:57:27 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-718499559-1603961846-sysbot+gh@w3.org>
Thoroughly agree with this. The lack of units is just about manageable, but the inability to use `var()` is a real issue for anything complex. We should allow a path to be concatenated into one string from all the arguments supplied to the `path()` function. For example:
* `path("M 100 100 " var(--outerpath) var(--innerpath))`
* `path("M 100 100 A 100 100 0 0 0 " calc(foo * sin(var(--a))) calc(foo * cos(var(--a))))`

I'm presuming spaces are inserted between the tokens, and that numbers are stringified before concatenation. Even if units aren't allowed, this would go a very long way to making it more usable.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 29 October 2020 08:57:28 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:21 UTC