w3c / w3c/csswg-drafts

[css-ui-4] `input-security` may be misleading

Open
#6,449 6 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-ui-4
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

Hey there! Recently stumbled across #6239, as I was asking around to see if browsers were working on a way to standardize the "bisected-eye" password reveal functionality. Edge always has it, Chrome sometimes does, Firefox doesn't, and it's a bit of an a11y nightmare as a result.

Anyways, I was quite excited to see the input-security proposal in #6239. Wonderful that there has been some progress on this issue. That said, I have a concern I'd like to share, from my (personal) perspective as a former security engineer at Mozilla.

The name input-security is fairly vague in what it is offering, and may provide people with a false sense of security as to what it does (especially as auto). It's clear if you read the specification, but in a general sense it may mislead people e.g. does input-security prevent Javascript from reading the contents or not.

What I'd like to propose is something a bit more direct in its wording, text-concealment-toggle:

text-concealment-toggle: visible (shows the bisected eye toggle)
text-concealment-toggle: none (no bisected eye)
text-concealment-toggle: auto (lets the user agent decide)

With the possible suggestion that user agents SHOULD show the toggle with auto, for accessibility reasons.

This would also allow a more general-purpose attribute for control over the concealment of input in general, if wanted, such as on <input type="tel">:

• text-concealment: auto (lets the user agent decide)
text-concealment: concealed (shows asterisks)
text-concealment: none (never shows asterisks)

Thanks so much!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading this discussion alongside issue #6239 and the CSS specification material for the input-security proposal. Review the naming and accessibility concerns raised here, then check the relevant CSSWG discussion before deciding whether the terminology should change. Done means the Working Group has resolved the naming and any resulting specification updates are recorded.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
accessibility, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.