W3C home > Mailing lists > Public > www-svg@w3.org > March 2014

Re: What should the bbox of a path without a d attribute be?

From: Stephen Chenney <schenney@chromium.org>
Date: Wed, 5 Mar 2014 10:34:12 -0500
Message-ID: <CAObCcUot5CTfStm9qipR1hgr3PggpQ7zu5uksqfhqhUTq4b8Ew@mail.gmail.com>
To: Erik Dahlström <ed@opera.com>
Cc: Nikos Andronikos <nikos.andronikos@cisra.canon.com.au>, "www-svg@w3.org" <www-svg@w3.org>
On Wed, Mar 5, 2014 at 8:38 AM, Erik Dahlström <ed@opera.com> wrote:
>
> We should resolve on how to deal with the "in error" conditions for
> <path>, <polyline> and <polygon>. I propose that when the element in
> question does render something the bbox must represent that, and if the
> data is malformed before an initial moveto then the bbox should be
> [0,0,0,0], and if the point where the data is malformed is right after the
> initial moveto (x,y) the bbox should be [x,y,0,0].
>
>
Yes. This is informative to a developer, and is consistent with the way we
treat a lone moveto when adding line caps or markers.

Stephen.
Received on Wednesday, 5 March 2014 15:34:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:51 UTC