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

css.selectors.highlight - Incompatibility with user-select #25132

Open
aeharding opened this issue Nov 20, 2024 · 0 comments
Open

css.selectors.highlight - Incompatibility with user-select #25132

aeharding opened this issue Nov 20, 2024 · 0 comments
Labels
data:css 🎨 Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS

Comments

@aeharding
Copy link
Contributor

What type of issue is this?

Browser bug (a bug with a feature that may impact site compatibility)

What information was incorrect, unhelpful, or incomplete?

Safari's Custom Highlighting API is incompatible with user-select: none

What browsers does this problem apply to, if applicable?

Safari

What did you expect to see?

Elements with user-select: none should still allow custom highlighting. This is what I see in Chrome and Firefox nightly.

Did you test this? If so, how?

Yes: https://developer.mozilla.org/en-US/play?id=eZGsm6RpJZXXrR114ydA1PUgxhs3BvS1xeQ%2FPB5hT969sbZc%2Bod8Vb9ZUZcE%2FnR7t%2BksjFyUMr87t0Yd

This is the MDN Custom Highlighting API example, with the only modification being:

article {
  user-select: none;
  -webkit-user-select: none;
}

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

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

Do you have anything more you want to share?

No response

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/CSS_Custom_Highlight_API

MDN metadata

MDN page report details
  • Query: css.selectors.highlight
  • Report started: 2024-11-20T02:34:22.975Z
@queengooborg queengooborg added the data:css 🎨 Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:css 🎨 Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS
Projects
None yet
Development

No branches or pull requests

2 participants