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

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

From: Dirk Schulze <dschulze@adobe.com>
Date: Sun, 29 Sep 2013 14:15:33 -0700
To: Rik Cabanier <cabanier@gmail.com>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-ID: <0F36F5F7-13D8-4B05-9CBD-146DC4C7D347@adobe.com>

On Sep 29, 2013, at 10:01 PM, Rik Cabanier <cabanier@gmail.com> wrote:

> 
> 
> 
> On Sun, Sep 29, 2013 at 9:51 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> On Sun, Sep 29, 2013 at 7:34 AM, Dirk Schulze <dschulze@adobe.com> wrote:
> > The specification currently does not mention what should happen if an author just specifies one or two pairs of coordinates with the polygon() function. At the moment it is not clear if you need to specify at least one pair at all:
> >
> > ""
> > polygon() starts with an optional <fill-rule> argument, followed by a list of arguments consisting of <length> or <percentage> pairs.
> > ""
> >
> > For two pairs, do authors see the text wrap around this line between these two coordinates? I would assume so, but just want to be sure.
> > For one pair, does the text wrap around this point, or do we have any different behavior?
> 
> We should require at least three points; we don't need to allow
> degenerate polygons at all.
> 
> Why do you need 3 points? A single bezier curve can describe an area. 

We are talking about the polygon function, not a path. You can just specify coordinates and the UA will connect these with straight lines. But as Alan pointed out, you can run into the same problems with an arbitrary number of coordinates as with one single coordinate.

Greetings,
Dirk

>  
> 
> > If a line or point defined by the polygon is between two lines (set with line-height maybe), do we still se wrapping behavior? Is there even something like spacing between lines?
> 
> Whatever a zero-height float does to the following line.  This is
> defined somewhere, as I remember it coming up in the drive toward 2.1
> Rec.
> 
> ~TJ
> 
> 
Received on Sunday, 29 September 2013 21:15:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:34 UTC