Re: [csswg-drafts] [css-anchor-position-1] Select the fallback position where more content is visible, not the last (#9047)

From an implementation point of view this breaks an important optimization that we are able to take compared to selecting the last try.

Specifically determining the width (inline-size) of an element is relatively cheap, compared to determining the height (block-size). Today we determine the width, then can check if it fits then skip to the next try-block without performing a full-layout. With selecting the "most visible" we'd need to perform a full layout on each try-block if nothing completely fitted.



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


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

Received on Friday, 21 July 2023 17:57:44 UTC