Skip to content

ResizeObserver.contentRect needs to adjust for non-SVG elements #40107

@jdm

Description

@jdm

Step 7 from https://drafts.csswg.org/resize-observer/#create-and-populate-a-resizeobserverentry says:

If target is not an SVG element ... do these steps:

  1. Set this.contentRect.top to target.padding top.
  2. Set this.contentRect.left to target.padding left.

Our implementation is missing that logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/domInteracting with the DOM from web contentI-wrongAn incorrect behaviour is observed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions