W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2019

Re: [csswg-drafts] [resize-observer] Add offset position to rects (#3550)

From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
Date: Mon, 25 Feb 2019 21:41:43 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-467194696-1551130902-sysbot+gh@w3.org>
The CSS Working Group just discussed `Add offset pos`, and agreed to the following:

* `RESOLVED: Don't include offsets for the box being observed.`

<details><summary>The full IRC log of that discussion</summary>
&lt;heycam> Topic: Add offset pos<br>
&lt;gregwhitworth> Github: https://github.com/w3c/csswg-drafts/issues/3550<br>
&lt;heycam> gregwhitworth: Simon brought up that the position of the rects you're observing<br>
&lt;heycam> ... say the author wants to observe the content rect, you want both the tlbr offsets relative to the box<br>
&lt;heycam> ... Alex and I discussed this.  Ian brought up a valid pint, we're not observing the offsets<br>
&lt;heycam> .. beingable to use the offsets inside the observer may cause stale issues<br>
&lt;heycam> ... only when dimensions change do you fire the observer<br>
&lt;heycam> smfr: which box?<br>
&lt;heycam> gregwhitworth: the one you're watching<br>
&lt;heycam> ... say you're observing context box<br>
&lt;heycam> ... you' dget the dimensions of that back<br>
&lt;heycam> ... you asked about having the offsets in there sa well<br>
&lt;heycam> ... use counters say that isn't common<br>
&lt;heycam> ... Ian brought up looking at the offsets when not firing the observer<br>
&lt;heycam> ... you'd want to add that you're also observing offsets<br>
&lt;heycam> smfr: so author could change border and padding so the content box doesn't change<br>
&lt;heycam> alex: you'd have to put two boxes together if you really wanted to know the offsets<br>
&lt;heycam> smfr: I suggested it for completeness.  if it adds complexity I don't feel strongly<br>
&lt;heycam> iank_: if we need it eventually, it should be trivial to extend to support this<br>
&lt;heycam> gregwhitworth: but also need to add observing offsets<br>
&lt;heycam> iank_: but we haven't painted ourselves into a corner<br>
&lt;heycam> stefan: the behavior is polyfillable if oyu have a 100% div inside<br>
&lt;heycam> ... if the size changes, the offsets will have chnaged<br>
&lt;heycam> dbaron: I like the idea that hte pieces of data you provide are the ones you're observing<br>
&lt;heycam> ... don't like having data in there that you're using which you don't get notifications for<br>
&lt;heycam> RESOLVED: Don't include offsets for the box being observed.<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3550#issuecomment-467194696 using your GitHub account
Received on Monday, 25 February 2019 21:41:45 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:44 UTC