diff --git a/files/en-us/web/svg/attribute/zoomandpan/index.md b/files/en-us/web/svg/attribute/zoomandpan/index.md index 22ae9f4b8c89d74..ec42c310af09124 100644 --- a/files/en-us/web/svg/attribute/zoomandpan/index.md +++ b/files/en-us/web/svg/attribute/zoomandpan/index.md @@ -4,7 +4,9 @@ slug: Web/SVG/Attribute/zoomAndPan page-type: svg-attribute status: - deprecated -browser-compat: svg.elements.svg.zoomAndPan +browser-compat: + - svg.elements.svg.zoomAndPan + - svg.elements.view.zoomAndPan --- {{SVGRef}}{{Deprecated_Header}} diff --git a/files/en-us/web/svg/element/view/index.md b/files/en-us/web/svg/element/view/index.md index 607a2ec46aa4a53..7d8738696d11b92 100644 --- a/files/en-us/web/svg/element/view/index.md +++ b/files/en-us/web/svg/element/view/index.md @@ -15,9 +15,15 @@ The **``** [SVG](/en-US/docs/Web/SVG) element defines a particular view of ## Attributes -- {{SVGAttr("viewBox")}} - {{SVGAttr("preserveAspectRatio")}} + - : This attribute defines how the SVG fragment must be deformed if it is embedded in a container with a different {{glossary("aspect ratio")}}. + _Value type_: (`none`| `xMinYMin`| `xMidYMin`| `xMaxYMin`| `xMinYMid`| `xMidYMid`| `xMaxYMid`| `xMinYMax`| `xMidYMax`| `xMaxYMax`) (`meet`|`slice`)? ; _Default value_: `xMidYMid meet`; _Animatable_: **yes** +- {{SVGAttr("viewBox")}} + - : This attribute defines the bound of the SVG viewport for the pattern fragment. + _Value type_: **[\](/en-US/docs/Web/SVG/Content_type#list-of-ts)** ; _Default value_: none; _Animatable_: **yes** - {{SVGAttr("zoomAndPan")}} {{Deprecated_Inline}} {{Non-standard_Inline}} + - : This attribute specifies whether the SVG document can be magnified and panned. + _Value type_: **disable | magnify** ; _Default value_: magnify; _Animatable_: **no** ## Example @@ -50,10 +56,6 @@ The **``** [SVG](/en-US/docs/Web/SVG) element defines a particular view of {{EmbedLiveSample("Example", "85ch", "240px")}} -## DOM Interface - -This element implements the {{domxref("SVGViewElement")}} interface. - ## Specifications {{Specifications}}