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

fix ::selection in chrome #8908

Open
jimmywarting opened this issue Jul 4, 2023 · 6 comments
Open

fix ::selection in chrome #8908

jimmywarting opened this issue Jul 4, 2023 · 6 comments

Comments

@jimmywarting
Copy link
Contributor

Describe the bug

I'm tiered of re-writing and reporting the same issue to multiple services about the use of root variables inside of ::selection
So i'm just going to link to same github issue that explains it:

primer/css#2472
https://www.azabani.com/2022/09/01/meet-the-css-highlight-pseudos.html#accessing-global-constants

it's very annoying to not be able to select anything.

Reproduction

always in chrome with exp flag.

Logs

No response

System Info

chrome

Severity

annoyance

@tanhauhau
Copy link
Member

sorry i dont get how does ::selection relates to svelte? do you have a reproduction in Svelte that explains the issue you are facing?

@jimmywarting
Copy link
Contributor Author

it have not something to do with svelte but the sveltes own website. that makes use of ::selection on https://svelte.dev/

@jimmywarting
Copy link
Contributor Author

eg: https://svelte.dev/_app/immutable/assets/TryTerminal.b09557f2.css

::selection {
  background: var(--sk-selection-color)
}

the variable is not found...

@PuruVJ
Copy link
Collaborator

PuruVJ commented Jul 6, 2023

It works for me though 🤔 Can you post a video or screenshot? Also, whats your OS

@jimmywarting
Copy link
Contributor Author

Note that primer/css#2411 is currently only reproducible with Chrome's chrome://flags/#enable-experimental-web-platform-features enabled.

@Rich-Harris
Copy link
Member

Rich-Harris commented Apr 3, 2024

I have no idea what's being reported here. I enabled that flag, and I can still select text on https://svelte.dev (including in the terminal widget) just fine.

The linked issue does not explain what your concern is. I'm sure you'd rather not repeat yourself, but maintainers would rather not reverse engineer vague bug reports from unrelated repos. Please clarify what the problem is, or we have no choice but to close this.

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

No branches or pull requests

5 participants