[Webkit-unassigned] [Bug 244448] New: Should <button> have `user-select: none; ` by default?

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 28 04:20:18 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=244448

            Bug ID: 244448
           Summary: Should <button> have `user-select: none;` by default?
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Trivial
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dev at valtlai.fi

The user agent style sheet includes `user-select: none;` for <input type="button"> but not for <button>. Should we add `user-select: none;` to <button> for consistency? Or is there a good reason for the inconsistency?

To reproduce:
1. Open the following URL and see how the button text is selectable: data:text/html,Foo <button>Bar</button> Baz
2. Here the button text is unselectable: data:text/html,Foo <input type="button" value="Bar"> Baz

Other browsers:
• Neither <button> or <input type="button"> is selectable in Firefox.
• Chromium behaves like WebKit here: https://crbug.com/1356522

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220828/33845bf7/attachment.htm>


More information about the webkit-unassigned mailing list