Re: [csswg-drafts] [css-scroll-anchoring] anchoring within conteneditable elements (#11748)

Proposal for the agenda:

When contenteditable element has focus:
* **Option 1**: Treat that focused element as a root of the algorithm where we descend into it to find the best scroll anchor (first fully visible element, iirc)
  * Pros: fixes the problem
  * Cons: elements inserted into the visible portion of the contenteditable push the cursor down
* **Option 2**: Find the element that is nearest preceeding to the cursor and use that as the scroll anchor
  * Pros: best solution keeping the cursor as stable as possible
  * Cons: a bit more of a special case for contenteditable

-- 
GitHub Notification of comment by vmpstr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11748#issuecomment-2671875976 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 20 February 2025 15:39:46 UTC