Re: [csswg-drafts] [css-anchor-position] Fairly common use-case seems pretty difficult (#13617)

I was trying out something else, but by the looks of it, the `<select>` seems to do this all by itself _(in Chrome that is)_: https://codepen.io/bramus/pen/jEMMVrw/12f56be3bc91c4dd711bb4ffc8c9c343

I need to dig into the exact UA styles there to see how exactly it’s done.

One thing I did cheat with, is that I always added the 15px top _and_ bottom margin. This margin should only be there at one end, depending on which row of the position-area-grid the positioned element is in … which is this issue: https://github.com/w3c/csswg-drafts/issues/13534

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


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

Received on Monday, 9 March 2026 10:35:56 UTC