Re: [csswg-drafts] [css-forms] A way to prevent `<select>`'s picker from going into the top-layer (#13467)

> Use-case: If a <select> has only a couple of options, I want to hide the button, and always show the picker. I'd style the options to look more like radios or some kind of multi-item switch.

> This is almost possible, except on interaction, the picker goes into the top-layer, which isn't desirable in this case.

For this specific use case `<select size="3">` is a better solution. 

<img width="172" height="238" alt="Image" src="https://github.com/user-attachments/assets/f18afa05-45c9-42a9-91e6-28f90e6ad4f8" />

You get something like above and then can style it whichever way you'd like.


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


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

Received on Monday, 9 February 2026 13:17:44 UTC