Skip to content

[css-forms-1] Include fieldset and legend #11983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lukewarlow opened this issue Mar 22, 2025 · 2 comments
Open

[css-forms-1] Include fieldset and legend #11983

lukewarlow opened this issue Mar 22, 2025 · 2 comments

Comments

@lukewarlow
Copy link
Member

Currently, fieldset default borders don't work well in dark mode in any browser, and legend is notoriously hard to style and specifically position.

It would be good to include legend in base appearance which resolves the long standing issues, and fieldset would make sense to include so its styles are in-keeping with the rest of the elements (it may have other styling issues I'm unaware of).

It's possible we can update appearance: auto fieldset to have a better border style and that's enough.

@suethepooh
Copy link

Legend should absolutely make it into base appearance. It's such a useful element but so hard to work with.

@zcorpan
Copy link
Member

zcorpan commented Apr 8, 2025

Some relevant discussion and pointers in #11981 (comment) and later comments.

Also see whatwg/html#11095

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants