- From: Doug Schepers via GitHub <noreply@w3.org>
- Date: Thu, 30 Oct 2025 09:41:14 +0000
- To: public-svg-issues@w3.org
From a programmatic perspective, which is true of a lot of drawing and animation tools, it is better to have a predictable and meaningful output from `getBBox`, even when the target is not currently rendered. Having done a lot of this, my personal preference would be for it to return all the information it can, meaning the value information for `x` & `y`, and for whatever valid `width` and `height` values are available. If it's not valid (say, `width="-10"`), then return `0`, and my script can deal with that much more gracefully than returning `null` or all `0`s. Keep in mind that a script may be coordinating multiple elements at once, so having all available information about the bbox of those elements as they mutate is valuable. -- GitHub Notification of comment by shepazu Please view or discuss this issue at https://github.com/w3c/svgwg/issues/1018#issuecomment-3466976566 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 30 October 2025 09:41:15 UTC