- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Mon, 25 Feb 2019 22:05:03 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `ResizeObserverEntry shape`, and agreed to the following: * `RESOLVED: Option B, and remove scrollBox` <details><summary>The full IRC log of that discussion</summary> <heycam> Topic: ResizeObserverEntry shape<br> <gregwhitworth> Github: https://github.com/w3c/csswg-drafts/issues/3329<br> <gregwhitworth> https://github.com/w3c/csswg-drafts/issues/3329#issuecomment-466737070<br> <heycam> gregwhitworth: two options for the shape<br> <heycam> ... during the fragmentation discussion we might impact this<br> <heycam> ... the important part is that you can now watch N different types of boxes<br> <heycam> ... should we only pass back the dimensions of the dimensions of the box being observed? or provide the dimensions of other boxes as null?<br> <heycam> ... so inline/block would be the dimensions of the observed box. that's option A<br> <heycam> ... option B has separate properties for each box you could have observed<br> <heycam> ... benefit is that you can do e.g. `if (entry.borderBox)`<br> <heycam> ... overall most web devs I asked prefer B<br> <Rossen> heycam, is it possible to observe multiple boxes with the same observer?<br> <Rossen> gregwhitworth, no<br> <heycam> heycam: could also have a type property with values like "border"<br> <heycam> ... rather than having multiple properties where only one will ever be non-null<br> <heycam> gregwhitworth: the polls I did were like 65%-35%, 80%-20%<br> <heycam> ... so majority wanted option B<br> <heycam> iank_: only thought about the .type property is that often people don't check types<br> <heycam> ... option B does give you stronger type safety<br> <heycam> alex: option B could break easily<br> <heycam> florian: which is what you want<br> <heycam> Rossen: any other options?<br> <heycam> gregwhitworth: no<br> <heycam> ... what are the thoughts about the Houdini Box API<br> <heycam> Rossen: I mentioned last time, wedon't necessarily have Box structures for those things<br> <heycam> ... not that we couldn't have an identifier that has this<br> <heycam> ... but I'm curious what the lifetime expectaitons are<br> <heycam> ... if you take a reference to one of these boxes, and hold on to it<br> <heycam> ... and the element is removed from the DOM tree, or it's mutated in a way that this box no longer exists<br> <heycam> ... what are the expectations here?<br> <heycam> iank_: these aren't live objects<br> <heycam> ... we create a new one each time<br> <heycam> gregwhitworth: the observation life cycle takes care of this<br> <heycam> alex: the life cycle of resize observer ... the stuff we already released deals with the life cycle and it's complex<br> <heycam> ... the question is, what keeps the resize observer alive<br> <heycam> Rossen: my question is, in one case we're just returning pure data<br> <heycam> stefan: the entry has a reference to the element<br> <heycam> ... so even if the element is removed from the DOM, it still has a reference to the element<br> <heycam> iank_: we gather up all the obserations, and we snapshot at that time<br> <heycam> stefan: even if you have an element removed from the DOM, you still have a reference to the object<br> <heycam> smfr: CSS pixel units?<br> <heycam> gregwhitworth: we have an issue tomorrow to discuss device units<br> <heycam> [some discussion about the downsides of option B shape]<br> <heycam> gregwhitworth: the reason this API exists is to watch dimensions to do container query like things<br> <heycam> ... did width change? fire it<br> <heycam> smfr: what about observing scroll box on something not scrollable?<br> <heycam> gregwhitworth: not sure if scroll box is heavily defined<br> <heycam> Rossen: not *heavily*<br> <heycam> florian: which scroll box are we talking about?<br> <heycam> Rossen: say you want to observe the scroll box only of an element, and it's not scrollable -- let's say it changes overflow value<br> <heycam> florian: "scroll viewport" is defined, "scroll box" is not<br> <heycam> Rossen: are we talking about the scrollable box, the extent of all your contents, which you could scroll if you were scrollable?<br> <heycam> [some whiteboard drawing]<br> <heycam> Rossen: if this was just added there without a use case, we could just remove it<br> <heycam> gregwhitworth: I'm leaning towards that<br> <heycam> Rossen: so would dropping scroll box make people happy?<br> <heycam> stefan: only opinion is if if have it, it should be either the scroll port box or the scroll box that include the padding<br> <heycam> alex: the use case for scroll box was a chat box<br> <heycam> ... you always want to keep the the bottom, and if you are loading images you might want to scroll down<br> <heycam> smfr: scroll to MAXINT<br> <heycam> florian: scroll snapping will do that for you<br> <heycam> alex: how do you know if you've scrolled?<br> <heycam> stefan: just do it any time you get new content<br> <heycam> florian: scroll snap will do that for you declaratively<br> <gregwhitworth> Proposed resolution: remove scrollBox<br> <gregwhitworth> Proposed resolution: remove scrollBox from the observable boxes<br> <heycam> RESOLVED: Option B, and remove scrollBox<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3329#issuecomment-467202586 using your GitHub account
Received on Monday, 25 February 2019 22:05:05 UTC