Skip to content

[selectors] Add selector match custom element #10407

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

Closed
mantou132 opened this issue Jun 9, 2024 · 0 comments
Closed

[selectors] Add selector match custom element #10407

mantou132 opened this issue Jun 9, 2024 · 0 comments

Comments

@mantou132
Copy link

e.g: :custom-element

This pseudo-class can make the @socpe style not affect the content of the custom element:

<style>
@scope (.main) to (:custom-element) {
  p { /** **/ }
}
</style>
<p>my content</p>
<any-custom-element>
  <p>component or third-party content</p>
</any-custom-element>

StackOverflow issue: https://stackoverflow.com/questions/31480950/custom-element-selector

@mantou132 mantou132 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 3, 2024
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