Re: [csswg-drafts] [css-position][css-anchor-position] Splitting Scrollable Containing Blocks (#12607)

> Doing this nicely will require shorthandifying position, though, so that's a topic we really do need to figure out. Working around it would be... awful.

I don't think its that awful. If we accept an `auto` for both `position-attachment` and `position-container`, we can change the behaviour based on the `position` value - this is relatively straight forward that avoids shorthanding.

> `position-container: nearest | farthest | <custom-ident>`

Its not clear to me the value in `nearest` / `farthest` by themselves, e.g. the switch that people use for that beahviour today is switching between `absolute` / `fixed` which shouldn't complicate that more. A simpler sytax could just be
`position-container: auto | <custom-ident>`

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


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

Received on Wednesday, 20 August 2025 18:44:30 UTC