W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2018

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

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Wed, 19 Dec 2018 02:13:05 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-392412233-1545185584-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:41 UTC