[svgwg] How should ResizeObserver work for SVG layout elements? (#713)

AmeliaBR has just created a new issue for https://github.com/w3c/svgwg:

== How should ResizeObserver work for SVG layout elements? ==
Background: https://github.com/w3c/csswg-drafts/issues/4032
Current spec:  https://drafts.csswg.org/resize-observer/#calculate-box-size

In https://github.com/w3c/csswg-drafts/issues/4032, the CSS WG resolved that SVG elements _with_ CSS layout boxes should be observable as regular CSS boxes.  However, the group defers to SVG for what boxes should be observable for other SVG elements.

The current spec & implementations return the SVG layout object bounding box, regardless of which CSS box is asked for.  Fantasai recommended that, if the spec maps CSS layout box keywords to SVG bounding boxes, it should follow the definitions in [Fill & Stroke](https://drafts.fxtf.org/fill-stroke/#fill-origin), as resolved in https://github.com/w3c/csswg-drafts/issues/857

Another possibility is that no mappings from CSS boxes to SVG boxes happens at all: if you try to observe resizing of a CSS box on an element that doesn't have CSS layout, you won't get any observations. Level 2 of Resize Observer may add other boxes that you can observe, which could include observing the SVG layout boxes directly.


Please view or discuss this issue at https://github.com/w3c/svgwg/issues/713 using your GitHub account

Received on Wednesday, 10 July 2019 16:55:05 UTC