- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Mon, 20 May 2019 20:27:54 +0000
- To: public-svg-issues@w3.org
The SVG Working Group just discussed `getBBox algorithm doesn't factor in child transforms`, and agreed to the following: * `RESOLUTION: Transforms on the children will be transformed into the parents coordinate system and affect the parents bounding box.` <details><summary>The full IRC log of that discussion</summary> <krit> topic: getBBox algorithm doesn't factor in child transforms<br> <krit> GitHub: https://github.com/w3c/svgwg/issues/673<br> <krit> AmeliaBR: SVG2 has a detailed algorithm for bounding box which wasn't in SVG 1.1. BBox on groups with children will end up in parents coordinate space.<br> <krit> AmeliaBR: we got consensus and consistency. But then RobertL brought up elements with inner and outer coordinate system<br> <krit> AmeliaBR: So you define coords in the parent coordinate systems and the elements own viewbox. This is not clearly specified. That also affects transforms and cumulation of transformation systems (inner or outer coord system affected?)<br> <krit> AmeliaBR: we do not have consistency between browsers all the time. But looked at the current state for all browsers in all cases.<br> <krit> Tav: what is most useful?<br> <krit> AmeliaBR: giving users the choice.<br> <krit> AmeliaBR: There are situations where you want the box of its cumulated child boxes.<br> <krit> AmeliaBR: But shape within a parents context might give you inconsistent numbers.<br> <krit> AmeliaBR: did you see some level of consistency?<br> <krit> s/AmeliaBR/krit/<br> <krit> AmeliaBR: Every UA is consistent how child transforms affect parents bounding box.<br> <krit> AmeliaBR: Need to test how things work with nested SVGs or even the root SVG.<br> <krit> krit: Can we split the issue?<br> <krit> AmeliaBR: maybe we should open a separate issue.<br> <krit> AmeliaBR: Example: you got a group and the child (e.g. rect) element has a transform then this transform affects the group bounding box.<br> <krit> Tav: would be surprised otherwise.<br> <krit> AmeliaBR: We have the detailed algorithm for SVG2 but we forgot the point described above.<br> <krit> AmeliaBR: I can take responsibility for the edits if we agree.<br> <krit> AmeliaBR: If someone has time to look at nested SVGs that would be great.<br> <krit> krit: To be clear: nested SVGs means inner SVG?<br> <krit> AmeliaBR: all elements that have an inner and outer coordinate system like all elements with a viewBox.<br> <krit> krit: makes sense to spec transforms on children<br> <krit> AmeliaBR: algo doesn't mention that coordinate systems change when going from inner to outer at all currently.<br> <krit> krit: lets split the issue then and agree on the first part of the issue. Someone could work on tests for the 2nd issues?<br> <chris> I can help on that but not this week undortunately<br> <krit> AmeliaBR: there is the part to figure out what should be spiced and the part about writing conformance tests.<br> <krit> krit: Can not commit to it but try to look at nesting as well.<br> <krit> AmeliaBR: Simon also brought up affect of 3D transforms on bounding box<br> <krit> AmeliaBR: we should figure the 2D part out first.<br> <krit> proposed RESOLUTION: Transforms on the children will be transformed into the parents coordinate system and affect the parents bounding box.<br> <krit> RESOLUTION: Transforms on the children will be transformed into the parents coordinate system and affect the parents bounding box.<br> <chris> sgtm<br> <krit> s/bounding box./bounding box. Additional resolutions for rotation may follow./<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/svgwg/issues/673#issuecomment-494138470 using your GitHub account
Received on Monday, 20 May 2019 20:27:56 UTC