| Summary: | Should <button> have `user-select: none;` by default? | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Valtteri Laitinen <dev> |
| Component: | DOM | Assignee: | Karl Dubost <karlcow> |
| Status: | NEW --- | ||
| Severity: | Trivial | CC: | dev, karlcow, webkit-bug-importer |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=208677 | ||
|
Description
Valtteri Laitinen
2022-08-28 04:20:18 PDT
In fact, there’s no `user-select: none;` for <input type="button"> in the user agent style sheet, but the text is magically unselectable and cannot be made selectable with CSS. Also, WebKit doesn’t support the unprefixed `user-select` so `-webkit-user-select` must be used. There is a bug open on Firefox about selection and button https://bugzilla.mozilla.org/show_bug.cgi?id=1763744 which was opened because of this webcompat issue. https://github.com/webcompat/web-bugs/issues/102132 This should be probably filed as a spec issue. Note the css-ui spec [1] includes the following: > The following additions are made to the UA stylesheet for HTML: > button, meter, progress, select { user-select: none; } [1] https://drafts.csswg.org/css-ui/#issue-5d851d49 (just before the inline issue) Pull request: https://github.com/WebKit/WebKit/pull/10017 |