W3C home > Mailing lists > Public > www-style@w3.org > September 2013

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

From: Alan Stearns <stearns@adobe.com>
Date: Mon, 30 Sep 2013 15:03:17 -0700
To: Dirk Schulze <dschulze@adobe.com>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-ID: <CE6F408A.308D4%stearns@adobe.com>
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.


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

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:32 UTC