- From: Karl Dubost via GitHub <noreply@w3.org>
- Date: Thu, 30 Oct 2025 07:50:43 +0000
- To: public-svg-issues@w3.org
https://www.w3.org/2025/10/30-svg-minutes.html#d410 ``` karlcow: If with or height are negative, we should make everything 0 in getBBox karlcow: ...according to last resolution dmangal: We should not throw if there are invalid values. dmangal: I am concerned what we should return: everything 0 or only the width/height dimension turn 0 dmangal: an element with 0 dimension does have a bounding box according to spec dmangal: according to the paragraph in qiuestion. Should we change the paragraph? karlcow_: The resolution shouldn't have any affect on the rest of the SVG document IMO karlcow_: Putting everyhthing to 0 seems to be simplest nzimmermann: Most obvious would be 0 everything. nzimmermann: Elements with 0-dimension doesn't have an effect on parent bounding box. nzimmermann: So there is no value to keep position and make dimension only 0 nzimmermann: seems to be natural to return 0 dmangal: A path can be 1 dimensional. Would that be different? krit: M 100 100 L 100 100 as example nzimmermann: valid question nzimmermann: we should test this scenario karlcow_: We should create WPT tests first and see what browsers return and decide based on the results. nzimmermann: there is no way to fill a dot. But of course we can stroke it. SVG2 does have arguments for getBBox. So maybe one can differentiate between getBBox w/o arguments and an argument for getting the stroke boundingbox nzimmermann: We should test these scenarios. Agree with karlcow_ : we should base our decision on the results on WPT. karlcow_: Who'll create the tests dmangal: I will ACTION: dmangal will create more detailed getBBox tests for WPT and also take the arguments into account. karlcow_: The paragraph you found almost looks like an algorithm. There are many places in SVG2 where things are said but not written as algorithm karlcow_: it is strange to me. dmangal: It seems off from the rest of the paragraph ``` @goldenboy777 will create WPT tests to cover all possible scenarios for getBBox and see how browsers align. -- GitHub Notification of comment by karlcow Please view or discuss this issue at https://github.com/w3c/svgwg/issues/1018#issuecomment-3466507921 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 07:50:44 UTC