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

Re: [csswg-drafts] [resize-observer] Which box information should we pass to the callback (#3329)

From: Tremayne Christ via GitHub <sysbot+gh@w3.org>
Date: Mon, 25 Feb 2019 11:40:18 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-466980396-1551094817-sysbot+gh@w3.org>
Also, just to clarify...

1. So `devicePixelBorderBox` is being scrapped?

2. Sticking to the term `box` instead of `size`? I guess this is to support offsets if required (#3550)?

3. What happens if this occurs?
```js
const ro = new ResizeObserver(() => {});

ro.observe(document.body, { box: 'border-box' });

// This one will be skipped?
// or will contentBox and borderBox be watched and returned?
ro.observe(document.body, { box: 'content-box' });
```

-- 
GitHub Notification of comment by TremayneChrist
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3329#issuecomment-466980396 using your GitHub account
Received on Monday, 25 February 2019 11:40:20 UTC

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