W3C home > Mailing lists > Public > www-svg@w3.org > June 2015

Mesh element: Add viewBox attribute?

From: Amelia Bellamy-Royds <amelia.bellamy.royds@gmail.com>
Date: Tue, 9 Jun 2015 16:28:06 -0600
Message-ID: <CAFDDJ7zyjZZ8GRFhWb12S4dNyhyoWyjPX+--6V1yxxgVKA8jnQ@mail.gmail.com>
To: www-svg <www-svg@w3.org>
Cc: Tavmjong Bah <tav.w3c@gmail.com>
I agree with the action from the F2F (below), that the mesh element should
support objectBoundingBox units.  However, I wonder whether it wouldn't
also be useful to support viewBox/preserveAspectRatio similar to how they
work on pattern tiles.

This would have two benefits:
* you could define a mesh effect that scales to fit the referencing
element, without having to define every point in decimal numbers.
* you could control aspect ratio of the paint separately from the
dimensions of the bounding box, so that for example circles don't always
get stretched into ellipses.



On 9 June 2015 at 03:35, SVG Working Group Issue Tracker <
sysbot+tracker@w3.org> wrote:

> SVG-ACTION-3795: Make objectboundingbox on meshes cause the path syntax to
> be interpreted as 0..1 bounding box values
>
> http://www.w3.org/Graphics/SVG/WG/track/actions/3795
>
> Assigned to: Tavmjong Bah
>
>
Received on Tuesday, 9 June 2015 22:28:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:55:01 UTC