From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/pt-br/web/svg/attribute/version/index.html | 58 ++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 files/pt-br/web/svg/attribute/version/index.html (limited to 'files/pt-br/web/svg/attribute/version/index.html') diff --git a/files/pt-br/web/svg/attribute/version/index.html b/files/pt-br/web/svg/attribute/version/index.html new file mode 100644 index 0000000000..f1ff5c1b8c --- /dev/null +++ b/files/pt-br/web/svg/attribute/version/index.html @@ -0,0 +1,58 @@ +--- +title: version +slug: Web/SVG/Attribute/version +translation_of: Web/SVG/Attribute/version +--- +
{{SVGRef}}{{deprecated_header("SVG 2")}}
+ +

The version attribute is used to indicate what specification a SVG document conforms to. It is only allowed on the root {{SVGElement("svg")}} element. It is purely advisory and has no influence on rendering or processing.

+ +

While it is specified to accept any number, the only two valid choices are currently 1.0 and 1.1.

+ +
<svg version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
+  <rect x="10" y="10" width="80" height="80"/>
+</svg>
+ +

Usage notes

+ + + + + + + + + + + + + + + + +
Value<number>
Default valueNone
AnimatableNo
+ +

Specifications

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName("SVG1.1", "struct.html#SVGElementVersionAttribute", "version")}}{{Spec2("SVG1.1")}}Initial definition
+ +

Browser compatibility

+ + + +

{{Compat("svg.elements.svg.version")}}

-- cgit v1.2.3-54-g00ecf