- From: Divyansh Mangal via GitHub <noreply@w3.org>
- Date: Wed, 29 Oct 2025 08:45:38 +0000
- To: public-svg-issues@w3.org
I looked at the spec of Bounding box a little bit and saw https://svgwg.org/svg2-draft/coords.html#BoundingBoxes calls out the case for zero width and/or height: > An element which has zero width, zero height, or both (such as a vertical or horizontal line, or a ‘[rect](https://svgwg.org/svg2-draft/shapes.html#RectElement)’ element with a zero [width](https://svgwg.org/svg2-draft/geometry.html#Sizing) or [height](https://svgwg.org/svg2-draft/geometry.html#Sizing)) still has a bounding box, with a positive value for the positive dimension, or with '0' for both the width and height if no positive dimension is specified. Similarly, subpaths segments of a ‘[path](https://svgwg.org/svg2-draft/paths.html#PathElement)’ element with zero width and height must be included in that element's geometry for the sake of the bounding box. So a bounding box for the below case be 0x20 ??: (Because one of the dimensions resolves to zero the rendering of the element would be disabled, but that would only mean that it shouldn't contribute to the ancestor bboxes.) ``` <rect id="rect1" x="1" y="2" height="20"/> ``` A negative value of width/height is essentially ignored and for element like `rect` it will be treated as zero. Doesn't this mean the resolution in https://www.w3.org/2025/10/23-svg-minutes.html#34be will change this? @karlcow @dirkschulze -- GitHub Notification of comment by goldenboy777 Please view or discuss this issue at https://github.com/w3c/svgwg/issues/1018#issuecomment-3460404339 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 29 October 2025 08:45:39 UTC