Re: [css-shapes] polygon with one or two coordinate pairs

On 9/29/13 11:01 AM, "Dirk Schulze" <dschulze@adobe.com> wrote:

[discussion of polygon() with fewer than three vertices]

>
>For CSS Masking it also doesn't matter if you allow one or two points.
>Just no point at all would be something that needs consideration. I would
>require at least one point to make it clear.

The syntax does require at least one point (# means one or more).

While masking level 1 and shapes level 1 do not have a use for points or
lines created with the polygon() function, they do define what happens
with that result (and need to whether or not we restrict polygon() to
three or more vertices). There might be uses of polygon() in the future
where a point or line have a purpose, so I'd rather not restrict the
syntax now.

I've added a paragraph to the definition of polygon() to have one more
place that defines what happens when you end up with a shape that encloses
no area.

Thanks,

Alan

Received on Monday, 30 September 2013 22:10:47 UTC