- From: Siye Liu via GitHub <sysbot+gh@w3.org>
- Date: Fri, 19 Apr 2024 17:52:55 +0000
- To: public-css-archive@w3.org
siliu1 has just created a new issue for https://github.com/w3c/csswg-drafts: == [cssom-view] Remove `caret range` concept from `CaretPosition` interface == Current spec for `CaretPosition` interface has a `caret range` concept which is a live range. The `caret range` is only used to get the client rect of the `CaretPosition`. We should avoid creating the live range upfront because: 1. the live range is not used at all except for getting client rect. 2. Maintain live range can be expensive during DOM mutation. 3. No browsers implemented the algorithm by creating live range upfront. (Firefox and Chromium both create a live range only when `CaretPosition::getClientRect()` is invoked.) Propose to remove `caret range` concept from `CaretPosition` interface. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10230 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 19 April 2024 17:52:56 UTC