whatwg / whatwg/html

UA style user-select:none on button etc

Open
#1,027 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

topic: forms topic: rendering
Dominant language
HTML
Stars
9.4k
Forks
3.2k
Avg merge
3d 9h
Merged PRs (30d)
38

Description

The following additions are made to the UA stylesheet for HTML:

button, meter, progress, select { user-select: none; }

the list above is incomplete, and needs to include at least the various button-like variants of input.

https://drafts.csswg.org/css-ui-4/#propdef-user-select

Should investigate what implementations do and maybe add something to HTML's rendering section.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4042 - none in Gecko, text in Chromium and WebKit.

cc @frivoal

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 with HTML's rendering section and the CSS UI 4 user-select definition. Use the linked live DOM viewer to compare Gecko, Chromium, and WebKit behavior for button-like input variants. Done means the missing variants are investigated and the HTML rendering guidance is updated if the evidence supports it.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.