W3C home > Mailing lists > Public > www-style@w3.org > April 2016

[cssom-view] Range.getClientRects() when the range contains part of a grapheme cluster

From: Koji Ishii <kojiishi@gmail.com>
Date: Thu, 7 Apr 2016 20:29:34 +0900
Message-ID: <CAN9ydbVJyGkokg0p3=65r7NLi898mzd6SV_EvDTfq7fBq8MHwQ@mail.gmail.com>
To: "www-style@w3.org" <www-style@w3.org>
Cc: Brady Duga <duga@google.com>, Yoshifumi Inoue <yosin@chromium.org>
We recently figured out that the spec[1] isn't clear when the range
contains part of a grapheme cluster. Our behavior for the case was recently
changed due to some other improvements, which lead to a discussion of the
right behavior of getClientRects() and getBoundingClientRect().

Could we define cases such as:
1. What to do when the range contains part of a grapheme cluster.
2. What to do when the range contains part of a surrogate pair.
3. What to do when the range contains part of a ligature.

[1] https://drafts.csswg.org/cssom-view/#extensions-to-the-range-interface

/koji
Received on Thursday, 7 April 2016 11:30:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:02 UTC