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

The SVG Working Group just discussed `How should ResizeObserver work for SVG layout elements?`.

<details><summary>The full IRC log of that discussion</summary>
&lt;krit> topic: How should ResizeObserver work for SVG layout elements?<br>
&lt;krit> GitHub: https://github.com/w3c/svgwg/issues/713<br>
&lt;krit> AmeliaBR: ppl should look about it and comment what would makes sense<br>
&lt;krit> krit: is it ready for discussion?<br>
&lt;krit> AmeliaBR: in CSS we said SVG elements with CSS layout box should behave like all other CSS layout box elements<br>
&lt;krit> AmeliaBR: So I created an issue for SVG elements that are not using the CSS layout box. Should we map the CSS layout box terms to SVG or should we do it differently? What are the use cases for SVG?<br>
&lt;krit> krit: looking at use case first might make sense. Who should primiatly look at those? Implementers? Authors?<br>
&lt;krit> AmeliaBR: both. But we should come up with boxes that are rapidly caculatable.<br>
&lt;krit> krit: everything that creates a new SVG viewport might be easy. Everything else needs to compete the Object bounding box which might not easy to compute for text and paths.<br>
&lt;krit> myles: Not sure if SVG viewport only would be useful. Nested SVG might be useful still but would be shame not to support it everywhere.<br>
&lt;krit> krit: having more feedback from actual authors and users of resize observers would be great<br>
&lt;krit> krit: do we want to provide any options<br>
&lt;krit> AmeliaBR: Options are 1) there is nothing to observe on SVG layout (only CSS layout box elements). We could have the option to support bounding box observation in the future.<br>
&lt;krit> myles: authors might not know the terminology<br>
&lt;krit> AmeliaBR: talking in spec terms<br>
&lt;krit> AmeliaBR: 2) What is currently in the spec: any request for observing an element just returns the SVG object bounding box.<br>
&lt;krit> AmeliaBR: 3) Try to map CSS layout box to equiviland SVG boxes. padding box to object bounding box...<br>
&lt;krit> AmeliaBR: there is no implementation that exposes stroking bounding box<br>
&lt;krit> krit: we do the mapping for some CSS properties<br>
&lt;krit> AmeliaBR: but not in a consistent way yet<br>
&lt;krit> krit: might not easy to make it consistent but it still is a possibility.<br>
&lt;krit> krit: my personal preference would be the mapping. As said, competing the bounding box is not always fast. On the other hand, it isn't always in CSS either.<br>
&lt;myles_> https://github.com/w3c/csswg-drafts/issues/4116<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/713#issuecomment-516159172 using your GitHub account

Received on Monday, 29 July 2019 20:57:10 UTC