- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 14 Feb 2024 19:47:57 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed ``[css-shapes] Allow optional rounding parameter for `polygon()` ``, and agreed to the following: * `RESOLVED: Work on adding corner rounding to polygon()` <details><summary>The full IRC log of that discussion</summary> <emilio> lea: this is about resolving whether we should work on this<br> <emilio> ... noticed that even though we have polygon() and clip-path, author still resort to images because they don't cover their use cases, the use cases include rounding<br> <emilio> ... many cases the same as the polygon<br> <emilio> ... I posted many<br> <emilio> ... proposal was to add a round parameter to the polygon, and then to also add an optional on each individual coordinate to customize rounding to that corner<br> <emilio> ... the way it'd be painted would be "a circle of that radius that is tangential to both vertices"<br> <emilio> ... if it's >180deg it'd draw outside<br> <emilio> ... we did some research on the max values to not end up with the right shape<br> <TabAtkins> q+<br> <astearns> q+<br> <emilio> ... question is whether there are blockers or should we work on this<br> <fantasai> +1 to the proposal<br> <astearns> ack TabAtkins<br> <emilio> TabAtkins: I agree with this. There are some details about limits<br> <emilio> ... but they don't need to be worked out here. Suggested functionality and syntax sounds good<br> <emilio> q+<br> <astearns> ack astearns<br> <emilio> ... so very supportive<br> <emilio> astearns: two questions<br> <emilio> ... perfectly fine with the proposal<br> <emilio> ... but I'm a bit concerned about rounding polygon corners because it's no longer a polygon<br> <emilio> ... so I wonder if it'd be better to fix path() to make this syntax simpler<br> <emilio> ... but if we do this I don't mind<br> <emilio> TabAtkins: we already round rectangles<br> <emilio> astearns: the other question is that it'd be nice if the rounding matches the rounding for shape-margin for polygons<br> <emilio> ... there's some text in the shapes spec that says how we do that<br> <emilio> TabAtkins: for expanding shapes it works the same way<br> <emilio> ... when it goes in I'm less sure<br> <astearns> ack emilio<br> <lea> re: is it a polygon any more, e.g. look at the W3Conf example, would you describe these as anything other than hexagons?<br> <dholbert> emilio (IRC): same line as astearns (IRC) ... Do we have anything to make this sort of path easily already right now?<br> <dholbert> TabAtkins (IRC): We do in the canvas specs. It has an operation to do this sort of rounding, corner-by-corner<br> <bkardell_> let's add it to svg :)<br> <dholbert> TabAtkins (IRC): It doesn't exist in SVG, but in the other thread I suggested pulling in some of the canvas operations as well<br> <fantasai> bkardell_, you volunteering to edit SVG? :)<br> <dholbert> emilio (IRC): seems like this use case should be/become covered by path, since it is a path<br> <lea> bkardell_: we'd need an SVG WG first and buy-in from implementers (who are *very* unwilling to implement any SVG thing)...<br> <astearns> ack fantasai<br> <Zakim> fantasai, you wanted to respond to that<br> <dholbert> emilio (IRC): it seems reasonable to add it to polygon, but we should make sure you can do this for a path too<br> <emilio> fantasai: could you do this in path? Yeah, but lots more work<br> <TabAtkins> the canvas `arcTo()` is literally "define a corner + a radius, and add the rounded corner to your path"<br> <emilio> ... by making the assumption that everything is a line it makes it a lot easier in polygon()<br> <TabAtkins> bkardell_, I don't think we need to add it to SVG *per se*, but adding it to shape() is fine<br> <emilio> ... telling authors that they should use path() for this is fine<br> <lea> +1 to fantasai's point, we even have a TAG principle to avoid cliffs where a small amount of use case complexity results in a large increase in complexity<br> <bkardell_> igalia is working on svg. I admit it is not 'new' svg, but if there are people (or organizations) interested in svg they should definitely maybe talk to me :)<br> <emilio> astearns: agree but we should make it easy to move from one to another<br> <lea> s/1 to fantasai's point, we even have a TAG principle to avoid cliffs where a small amount of use case complexity results in a large increase in complexity/1 to fantasai's point, we even have a TAG principle to avoid cliffs where a small amount of use case complexity results in a large increase in UI complexity/<br> <emilio> PROPOSAL: Work on adding corner rounding to polygon()<br> <emilio> RESOLVED: Work on adding corner rounding to polygon()<br> <fantasai> \^_^/<br> <emilio> emilio: should we resolve on rounded lines for path()?<br> <emilio> fantasai: there's another issue for that, a bit more complicated<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9843#issuecomment-1944485653 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 14 February 2024 19:48:00 UTC