Re: [csswg-drafts] [css-values-4] Add new relative length units that are relative to the size of the system cursor (#8315)

> What I dislike about this proposal is that it doesn't solve the original use case presented unless Javascript is also involved. To actually solve the use case, you would first need something like `position: pointer`.

The idea was that `anchor(cursor <anchor-side>)` would dynamically resolve the cursor's position plus offset defined by `<anchor-side>`. This is also how `anchor()` works for anchor elements where it needs to account for transitions.
But you're probably right that we might additionally need a `pointer` keyword for `position` to avoid offset issues resulting from any containing block.

Sebastian

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


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

Received on Monday, 30 January 2023 22:32:43 UTC