Skip to content

v2.0.0

Compare
Choose a tag to compare
@TremayneChrist TremayneChrist released this 07 Jun 15:16

Update the shape of the ResizeObserverEntry to match the latest version of the spec.

entry = {
  target: <element>,
  contentRect: { /* v1 backwards compat */ },
  borderBoxSize: { inlineSize, blockSize },
  contentBoxSize: { inlineSize, blockSize }
}
  • Removes support for scroll-box.
  • Removes support for device-pixel-border-box. This will be added when/if defined in the spec.
  • Updates contentSize to contentBoxSize.