[svgwg] SVG2 should clarify whether zero values for `width` / `height` disable rendering of the `svg` element (#830)

dholbert has just created a new issue for https://github.com/w3c/svgwg:

== SVG2 should clarify whether zero values for `width` / `height` disable rendering of the `svg` element ==
SVG1.1 said that a value of zero for either `width` or `height` would disable the rendering of the `<svg>` element:
https://www.w3.org/TR/SVG11/struct.html#SVGElementWidthAttribute

SVG2 has no such requirement, however. Here's its section about the `width` attribute for the `svg` element (basically defining it as a presentational attribute and explaining the `auto` behavior):
https://svgwg.org/svg2-draft/geometry.html#Sizing

Implementations disagree on this.
* Blink/Chromium and WebKit both **do** seem to disable the rendering of the `<svg>` element if the width or height is 0.
* Firefox does not disable the rendering.

The spec needs clarification here.  See https://github.com/webcompat/web-bugs/issues/63946 for an example & some discussion on this.

Please view or discuss this issue at https://github.com/w3c/svgwg/issues/830 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 4 March 2021 18:44:50 UTC