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

Errata on preserveAspectRatio (and viewBox) attribute

From: Jeremie Patonnier <jeremie.patonnier@gmail.com>
Date: Wed, 14 Mar 2012 21:04:37 +0100
Message-ID: <CAEi838m5gq4u=OMuedsAynFddC1Q=1F9TsWBH1XcecGCNzowWQ@mail.gmail.com>
To: www-svg <www-svg@w3.org>

There is some missing or ambiguous points about the preserveAspectRatio and
the viewBox attribute in the SVG 1.1 Spec.

First, the preserveAspectRatio attribute definition [1] does not mention
that the feImage element [2] also support that attribute.

Second, the attribute index appendix [3] forget to mention the support of
the preserveAspectRatio attribute for the foreignObject element. But that
seams ok because the foreignObject element [4] itself does not mention
support for the preserveAspectRatio (nor the viewBox attribute [5] either).
However, according to the preserveAspectRatio and viewBox attributes
definitions, they are both supported by elements that create a new viewport
[6] and this include foreignObject. FWIW, there is no clear exception on
those attributes definition that say explicitly that they should not be
supported by the foreignObject element.

So, I guess that foreignObject do not support preserveAspectRatio and
viewBox but it's ambiguous.

[1] http://www.w3.org/TR/SVG11/coords.html#PreserveAspectRatioAttribute
[2] http://www.w3.org/TR/SVG11/filters.html#feImageElement
[3] http://www.w3.org/TR/SVG11/attindex.html
[4] http://www.w3.org/TR/SVG11/extend.html#ForeignObjectElement
[5] http://www.w3.org/TR/SVG11/coords.html#ViewBoxAttribute
[6] http://www.w3.org/TR/SVG11/coords.html#ElementsThatEstablishViewports

Web : http://jeremie.patonnier.net
Twitter : @JeremiePat <http://twitter.com/JeremiePat>
Received on Wednesday, 14 March 2012 20:05:30 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:27 UTC