Skip to content

[cssom-view] Should getClientRects be supported on AbstractRange? #11813

Open
@ffiori

Description

@ffiori

https://drafts.csswg.org/cssom-view/#dom-range-getclientrects

Should getClientRects (and possibly getBoundingClientRect too) extend AbstractRange instead of Range so it can be called on any type of ranges?

This issue came up while making some clarifications to the spec of CSS.highlights.highlightsFromPoint which needs to determine if the point is in every custom Highlight registered, and to know that, the rects of their ranges need to be computed, and they can be either Ranges or StaticRanges.

Interested to hear some thoughts on this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions