Re: [csswg-drafts] [css-anchor-position][css-position] Fixing the animation problem (#9598)

> I thought the double-auto inset behavior is what I wanted if I didn't apply any inset properties.

Unless we define something else, the double-auto inset beahvior is the "position yourself to the static pos" behavior, which doesn't pay attention to inset-area (or anything else directly position-related). Could you elaborate on what you are expecting the behavior to be?

> I didn't understand how you could possibly get the intrinsic sizing behavior if you forced auto insets to 0

The legacy behavior where absposes stretch to fill their inset-modified containing block is trigger by `align/justify-self: stretch;` (or, currently, `align-self: normal;`, which acts like `stretch` by default). If you use any other alignment, you get the intrinsic sizing behavior, and then it aligns within the IMCB instead. See <https://drafts.csswg.org/css-align/#justify-abspos> for details. 

The proposal here changes `align-self: normal`, when `inset-area` is used, to behave in that latter fashion. No need to explicitly size the element.

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


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

Received on Tuesday, 5 December 2023 19:28:57 UTC