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

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