Re: [csswg-drafts] ResizeObserverEntry either needs to have its JS constructor removed, or define how its members are initialized when constructed (#3946)

Note that Chrome dev channel currently rejects `new ResizeObserverEntry(elem)` with `TypeError: Illegal constructor`.  Here's a fiddle to demonstrate that:
  https://jsfiddle.net/dholbert/w9L0dc1f/

In contrast, Firefox happily constructs a ResizeObserverEntry, though it may null-deref if you try to do anything with that object per https://bugzilla.mozilla.org/show_bug.cgi?id=1552911 because its contentRect/borderBoxSize/contentBoxSize are undefined.

-- 
GitHub Notification of comment by dholbert
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3946#issuecomment-494110453 using your GitHub account

Received on Monday, 20 May 2019 18:59:09 UTC