- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Mon, 01 Aug 2022 19:06:16 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `Is HighlightPointerEvent needed?`. <details><summary>The full IRC log of that discussion</summary> <fantasai> Topic: Is HighlightPointerEvent needed?<br> <fantasai> github: https://github.com/w3c/csswg-drafts/issues/7512<br> <fantasai> dandclark: if the solution we go with here involves highlight being an event target<br> <fantasai> dandclark: which either way I think will be the case<br> <fantasai> dandclark: who do I know which range was targetted?<br> <fantasai> dandclark: e.g. I'm a spell checker, but got a click, but which range was clicked?<br> <fantasai> dandclark: multiple ways to fix<br> <fantasai> dandclark: original solution maybe doesn't make sense, but if we do have some kind of intersects API then maybe that answers the question<br> <fantasai> dandclark: if we're re-using the existing pointer events, then [missed]<br> <flackr> q+<br> <fantasai> dandclark: call some kind of API, what were my intersection ranges?<br> <fantasai> dandclark: I need to know which ranges and which highlight<br> <fantasai> dandclark: perhaps API could be just onHighlight? similar to what ?? was proposing<br> <fantasai> dandclark: I add intersects() function to Highlight, it takes x,y and it returns a list of ranges in the highlight<br> <fantasai> dandclark: maybe that's the simplest<br> <fantasai> dandclark: highlight could potentially have several overlapping on the same text<br> <fantasai> dandclark: does that sound reasonable?<br> <fantasai> emilio: yes...<br> <GameMaker_> q+<br> <fantasai> emilio: given we already have a hit testing function that gives you list of highlights, maybe also takes ranges<br> <fantasai> emilio: I think this is related to previous issue<br> <fantasai> emilio: either way, if we go through event listener path or dom event thing, or the thing we were discussing<br> <fantasai> emilio: I'd rather resolve that first, even if it's not the final solution<br> <fantasai> emilio: maybe instead of sequence of highlights we need to return sequence of highlights and ranges<br> <fantasai> dandclark: sounds good, just want to make sure the problem is on the radar<br> <fantasai> flackr: I don't think we should have a specific event type, because I think ?????<br> <fantasai> flackr: prefer to have event that bubbles up. You dispatch to specific range, and then on the highlight you can check for which range<br> <fantasai> emilio: but target would be the DOM eleent<br> <dbaron> s/?????/we will want to target multiple types of events at highlights/<br> <fantasai> flackr: right, but ...<br> <dbaron> (I think)<br> <fantasai> emilio: but unsure about event target<br> <fantasai> emilio: [missed]<br> <fantasai> emilio: we may need to figure out a way... obviously, if we provide the API so that if we ? both highlights and ranges, the page could put the ranges property and expand all of the object<br> <fantasai> emilio: it's worth thinking about, but depends on other issues<br> <astearns> ack flackr<br> <astearns> ack GameMaker_<br> <fantasai> GameMaker_: I just want to make sure that when we're talking about ranges that highlights are done in abstract ranges, so keep that in mind<br> <fantasai> GameMaker_: make sure we remember they're AbstractRanges<br> <fantasai> emilio: you can build highlights with StaticRange and ??<br> <fantasai> GameMaker_: yeah, AbstractRange can be either<br> <fantasai> emilio: right<br> <dandclark> q?<br> <fantasai> astearns: anything else on this issue?<br> <fantasai> astearns: OK, we'll come back to both of these relatively soon<br> <dbaron> s/StaticRange and ??/StaticRange or Range/<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7512#issuecomment-1201596989 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 1 August 2022 19:06:18 UTC