Re: [csswg-drafts] [css-anchor-position] `position-anchor` should be defined as a longhand of `position` (#10321)

Let me walk through your examples with the `position` shorthand option:

1. You set `position: fixed --foo;` in a single declaration.
2. You set `position: fixed --foo;` in a single declaration.
3. You set `position-type: fixed` to switch from absolute to fixed without changing the anchor.
4. You set `position: fixed` which clears out all positioning properties (other than `inset`).

Shorthanding lets you reset everything or flip only the positioning type, whichever is appropriate to your use case.

> This also gives us more time to resolve the general issues with shorthandifying a long-standing non-shorthand property, as explored in https://github.com/w3c/csswg-drafts/issues/8398

Let's dig into that issue. It's been looming over these discussions long enough.

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


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

Received on Monday, 10 June 2024 22:36:18 UTC