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

As a curious sidenote: when I was playing with “polyfilling” the `position-area` using the existing anchor positioning, I did stumble upon several transition issues, mostly related to aligning the popover close to the target based on the side it is shown.

The way I solved it in my case was by having two elements, and having transitions for a) inset properties (which were never `auto`), and the grid columns and rows (as a way to handle the “auto” aligning).

Here is this experiment: https://codepen.io/kizu/pen/zYMmVJd

(this comment is mostly as “as an author I did encounter this issue, would be happy with any solution, and for some cases we _might_ have some workarounds already, though not ideal ones”).

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


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

Received on Tuesday, 21 November 2023 22:28:12 UTC