Re: [csswg-drafts] [css-forms-1] Password visibility toggle (#11845)

> It sounds to me like we at least have consensus to have it in `appearance: base`? And maybe also to allow UAs to expose it in `appearance: auto` if they so choose?

Yeah I like that. My proposal after talking to more folks internally:

* The pseudo-element is just always there in the pseudo-element tree
* It is named `::reveal-icon` or `::reveal` (up for bikeshedding)
* For `appearance: auto` in UAs that do not want it by default, this gets `display: none !important` by default (`auto` style should match the platform)
* For `appearance: none` (or implicit `none` appearance) in UAs that do not want it by default, this gets `display: none` (so developers can choose to show it)
* For `appearance: base`: this gets the same by default in _all_ UAs, whether it's `none` or `inline-block`/`block` is up for discussion, but it should be predictable in all UAs.
* (optional: allow `::-ms-reveal`  as an alias for maximum compatibility for UAs that enable it by default)
 

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


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

Received on Friday, 28 March 2025 05:07:59 UTC