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

`position:absolute` elements are irrelevant. They float above the layout and occlude no matter what. That's expected.

`box-shadow` is also irrelevant.

All that has to be taken into account is the `boundingClientRect` of `position:sticky` elements.

A simplified best-effort could even only consider `position:sticky` elements which are attached to the edges of the scrolling viewport. for example with `top` or `bottom` or `right` or `left` <= `0`.

This is the most common usage. To "stick" headers or footers to the edges of a scrolling viewport.

If we handled that simplified scenario, it's just a matter of clipping off those stickies when calculating the rectangle to move the scrolled element into.

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


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

Received on Wednesday, 29 May 2024 16:26:00 UTC