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

support ::details-content and ::target-text #888

Open
ghost opened this issue Jan 4, 2025 · 1 comment
Open

support ::details-content and ::target-text #888

ghost opened this issue Jan 4, 2025 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 4, 2025

baby, ::details-content and ::target-text are subject to warnings when building a .css file with vite. please erase these warnings.

Example:

body {
  &::details-content,
  &::target-text {
      opacity: 0%;
    }
}

[vite:css][lightningcss] 'details-content' is not recognized as a valid pseudo-element. Did you mean ':details-content' (pseudo-class) or is this a typo?

[vite:css][lightningcss] 'target-text' is not recognized as a valid pseudo-element. Did you mean ':target-text' (pseudo-class) or is this a typo?

warnings when minifying css:
'target-text' is not recognized as a valid pseudo-element. Did you mean ':target-text' (pseudo-class) or is this a typo?

https://caniuse.com/mdn-css_selectors_details-content
https://css-tricks.com/almanac/pseudo-selectors/d/details-content/

https://developer.mozilla.org/en-US/docs/Web/CSS/::target-text
https://caniuse.com/mdn-css_selectors_target-text

@dalailahner
Copy link

+1

please for ::spelling-error and ::grammar-error too.

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

1 participant