- From: Brian Kardell via GitHub <sysbot+gh@w3.org>
- Date: Thu, 13 Jun 2019 14:51:10 +0000
- To: public-css-archive@w3.org
bkardell has just created a new issue for https://github.com/w3c/csswg-drafts: == [resize-observer] svg interaction == ResizeObserver mentions SVG specially several times (see, for example https://drafts.csswg.org/resize-observer/#calculate-box-size). I don't recall the intent of this, but I am wondering if perhaps it is intended for observing the resizing of things _inside_ the SVG and not the SVG itself? It seems that if I had some construct with a svg with `width="100%"` the SVG itself is resizing, but if it is observing the boundingBox then those things will not be reported. This [little pen](https://codepen.io/bkardell/pen/RzwNmv) illustrates what I mean - here, I believe the path should fill green, but it doesn't because it seems that what is being observed is the bounding box. The pen also updates the reporting of the size of that bounding box every 100ms and as you can see, it never updates. This seems strange and it does seem (at least from what I can tell) implemented this way in all of the browsers. As an author, it's true that you can work around this by wrapping a div around it and monitoring that instead, but that seems like a strange workaround and like maybe this creates a need for special understanding. It seems what we want to observe here is not this? Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4032 using your GitHub account
Received on Thursday, 13 June 2019 14:51:12 UTC