- From: Greg Whitworth via GitHub <sysbot+gh@w3.org>
- Date: Wed, 23 Jan 2019 17:50:49 +0000
- To: public-css-archive@w3.org
@bfgeek There would need to be two different option sets, because we're trying to keep the API shape simple - what you have defined right now would create two tasks of the `content-box` and `border-box` which, as noted by @atotic in this [comment](https://github.com/w3c/csswg-drafts/issues/3329#issuecomment-439360802) that this can lead to missing notifications. In order to achieve what you want and avoid the missing notifications is to do something like this:
ro.observe(elem, {
boxToObserve: 'content-box',
boxesToReturnResultsFor: ['border-box', 'content-box']
});
This would allow the author to trigger on a specific box's dimension changing and which dimensions the author wants returned.
--
GitHub Notification of comment by gregwhitworth
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3329#issuecomment-456900519 using your GitHub account
Received on Wednesday, 23 January 2019 17:50:50 UTC