This has been bothering me since August '23 when this was first reported, and I can't really find any authoritative answer.
Example: https://jsfiddle.net/1t8Lng2j/
Problem: Text within a <button> element cannot be selected by the user. Safari only (tested with 16/17.x).
-webkit-user-select:text doesn't do anything on <button> elements in Safari.
Workaround: Changing to an anchor <a> tag makes text selectable, and anchor tags respond to the css property as expected.
All other browsers behave as expected, and text can be selected within a button element, or the user can be prevented from selecting text if the none property is used.
Does anyone know why -webkit-user-select doesn't work with button elements in safari?
solution is:
problem is: every browser have different default css styles. thats why you see difference for same codes. if you wanna see details open safari and go inpesct, read default styles.
thats some hard case because you working with :hover :active events.
these states are hard for debug.
also: buton is not for text select. if you select right elements, then its be easy. If you're having trouble with something, it's usually the wrong choice.