Re: [csswg-drafts] [cssom-view] scrollIntoView and sticky elements (#3104)

@emilio The example above shows the issue. Scrolling `id1` into view places `id1` *below the `.sticky` element. It's *not* in view.

When calculating a target rectangle into which an element may be scrolled, the rectangles of occluding sticky elements must be subtracted from that rectangle.

And there may be *multiple* target rectangles if some sticky elements are for example `top : 50%`. There may be then two target rectangles. Any algorithm the standard proposes should select the *largest* unoccluded rectangle.

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


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

Received on Thursday, 23 May 2024 09:15:37 UTC