web-platform-tests / interop-2022-editing

Work on the editing investigation for Interop 2022
Other
3 stars 3 forks source link

Selection #2

Open jgraham opened 2 years ago

jgraham commented 2 years ago

Selection, including where it's possible to put the caret, is an area that's been identified as high impact for editor authors. In particular the following questions:

For the caret position, we have some existing spec text that calls out some special cases: https://github.com/w3c/contentEditable/blob/ba10fb177f68567ff742d0acb6caab337224af2d/index.html#L145-L187

So as part of this investigation we should:

The aim is that the identified tests would be a candidate for an Interop 2023 focus area that browsers would be able to commit to.

jgraham commented 2 years ago

Please let me know if the summary as written isn't right, doesn't cover something important, or covers something it shouldn't.

jgraham commented 2 years ago

https://github.com/WICG/webcomponents/issues/79 seems to be the shadow root selection issue. The last action was @mfreed7 suggesting that they were planning to look at putting up spec PRs early/mid 2022. Unless there's a significant change in the status there I'd propose we make those PRs and some accompnying tests part of the concrete goals for this effort.

travisleithead commented 2 years ago

Note, the Intl.Segmenter is a very good way to get "legitimate" caret locations within a string (e.g., keeps grapheme clusters together, also helps with "word" navigation).

johanneswilm commented 2 years ago

Selection tests have been submitted here: https://github.com/web-platform-tests/wpt/pull/35862

jgraham commented 2 years ago

So we have a test PR, with some feedback. Do we believe that merging that PR completes all the selection work we were hoping to achieve as part of this investigation?

johanneswilm commented 2 years ago

As far as I can tell, the issues addressed in this PR do in fact correspond to the main selection issues editors are currently having. I have not received any feedback from other editors to the contrary either.

jgraham commented 2 years ago

Updating the score here to 50% per the meeting.

jgraham commented 2 years ago

Next step is review of the test PR; if that lands then this area will be complete.

jgraham commented 1 year ago

The test PR landed, so I propose we score this as 100%.