Re: [svgwg] SVG2 should clarify whether zero values for width & height attributes disable rendering of the <svg> element (#830)

Here's a testcase: https://jsfiddle.net/L0zsop25/

Firefox shows two lime rects (matching the current SVG2 spec text), while Blink/WebKit only show a single rect (matching the SVG 1.1 spec; they disable the rendering of the first SVG element).

The rendering-disabling behavior feels a little silly... It's odd that the first SVG doesn't get to paint anything (in e.g. Chrome) because of its `height=0 width=0`, whereas the second one with `width=1 height=1` is allowed to paint arbitrary amounts of content, e.g. a 50x50 box in this case.

-- 
GitHub Notification of comment by dholbert
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/830#issuecomment-790849560 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:56:54 UTC