Re: [csswg-drafts] [css-anchor-1] Issues with position fallback (#8059)

There's a still a minor bug, though it's probably an edge case.

If the target element has 0 size, then it can still fit in the scroll-adjusted IMCB even when it's out of the original containing block -- this happens when the SAIMCB is collapsed and also out of the original CB. (e.g., with `top: 1000000px; bottom: auto` and 0 scroll offset).

To fix it, we can require that the scroll-shifted margin box must be in both the SAIMCB and the original CB.

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


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

Received on Friday, 24 February 2023 00:05:35 UTC