W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2018

[csswg-drafts] [css-shapes-1] Degenerate polygons with positive shape-margin

From: Brad Werth via GitHub <sysbot+gh@w3.org>
Date: Thu, 01 Mar 2018 23:56:00 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-301604578-1519948559-sysbot+gh@w3.org>
bradwerth has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-shapes-1] Degenerate polygons with positive shape-margin ==
https://www.w3.org/TR/css-shapes-1/#funcdef-polygon
> At least three vertices are required to define a polygon with an area. This means that (for this specification) polygons with less than three vertices (or with three or more vertices arranged to enclose no area) result in an empty float area.

If a degenerate polygon has a positive shape-margin, it is practically useful for it to NOT have an empty float area. One example is an animated shape-outside: polygon with a shape-margin where the points in the polygon are momentarily made colinear. If the float area becomes empty in this case, the float area would collapse, only to abruptly reappear when the animation moved the points into an area-enclosing shape.

It would be useful for the spec to define the float area in the cases where the polygon is degenerate, but has a positive shape-margin. There are three cases:

1. Only 1 point specified: the float area is a circle of radius shape-margin centered at the specified point.
2. Only 2 points specified: the float area is a capsule of width shape-margin with endpoints of the two specified points.
3. 3 or more co-linear points: the float area is a capsule of width shape-margin with endpoints of the ends of the line segment defined by the specified points.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2375 using your GitHub account
Received on Thursday, 1 March 2018 23:56:08 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:25 UTC