Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebkitUserSelects will resolve to user-select but not to -webkit-user-select #191

Open
respigen opened this issue Feb 23, 2024 · 2 comments

Comments

@respigen
Copy link

Background:
user-select is supported without a prefix in most but not all major browsers. Previously this required a -webkit vendor prefix.

Functionally for the supporting browsers -webkit-user-select is the same as user-select and user-select is preferred. When using WebkitUserSelect, it is resolved to user-select, which is usually fine.

Problem:
Safari (as at time of writing) does not support user-select without a prefix. When I write the VendorLonghandProperties to specifically mean -webkit, I intend it to mean -webkit-user-select and not user-select

https://developer.mozilla.org/en-US/docs/Web/CSS/user-select

I don't actually think it's something that can be solved helpfully and it does not seem to be the responsibility of this package to solve.
I figured I'd open this for someone else to read if they run into similar issues because it took me a while to understand why this wasn't working for Safari.

@skyclouds2001
Copy link

skyclouds2001 commented Dec 28, 2024

Safari (as at time of writing) does not support user-select without a prefix. When I write the VendorLonghandProperties to specifically mean -webkit, I intend it to mean -webkit-user-select and not user-select

https://developer.mozilla.org/en-US/docs/Web/CSS/user-select

mdn content and bcd both conbine the two features into one documentation.

also, per bcd, there is no support difference in modern browser versions.

I don't actually think it's something that can be solved helpfully and it does not seem to be the responsibility of this package to solve.
I figured I'd open this for someone else to read if they run into similar issues because it took me a while to understand why this wasn't working for Safari.

in mdn-data, this is a user-select data, but there isn't a -webkit-user-select data, since safari only support -webkit-user-select, I think it is fine to add such a data.

@skyclouds2001
Copy link

will be added in mdn/data#864

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants