[csswg-drafts] [cssom-view] Need to define what conditions need to be true for an element to be "selected". (#3456)

emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom-view] Need to define what conditions need to be true for an element to be "selected". ==
https://drafts.csswg.org/cssom-view/#extensions-to-the-range-interface says:

> For each element selected by the range, whose parent is not selected by the range, include the border areas returned by invoking getClientRects() on the element.

But there's no definition of what being selected means. Implementations seem to disagree on whether a range that starts at the end of an element and ends at the end of its container contains that element.

See https://bugzilla.mozilla.org/attachment.cgi?id=9032315 for a test-case. I think Gecko is right in returning the rect there, but I think Gecko has a couple other bugs in which we return too many rects for elements (I think we don't implement the "whose parent is not selected by the range" part correctly).

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3456 using your GitHub account

Received on Wednesday, 19 December 2018 02:13:07 UTC