-
Notifications
You must be signed in to change notification settings - Fork 192
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
Add :host-context
to TSPseudoClass
#545
Comments
Any chance of this coming in a future update? I need to make a visitor for |
Hmm, looking through the link you posted it seems that this is a non-standard Chrome-only selector. According to the linked Firefox issue in the compatibility table, neither Mozilla nor Apple plan on implementing it and it will likely be removed from the spec. See w3c/csswg-drafts#1914. Therefore I'm hesitant to implement it as well. It should already be parsed as |
Yes
…On Thu, Jul 27, 2023, 12:20 PM Devon Govett ***@***.***> wrote:
Hmm, looking through the link you posted it seems that this is a
non-standard Chrome-only selector. According to the linked Firefox issue in
the compatibility table, neither Mozilla nor Apple plan on implementing it
and it will likely be removed from the spec. See w3c/csswg-drafts#1914
<w3c/csswg-drafts#1914>. Therefore I'm hesitant
to implement it as well. It should already be parsed as
PsuedoClass::CustomFunction. Does that work for you?
—
Reply to this email directly, view it on GitHub
<#545 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AX26CFG7JGRJ3H4M7KA35WLXSKPPLANCNFSM6AAAAAA2NP6KGA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
It's workable... the main issue is the lack of specificity with the arguments. The
converting this into selectors is not great |
@Oriblish how did you implement this? |
Tried messing with this more today... no luck, really. I'm basically left to parse the tokens into selector components, but this library already has that capability unexposed (as far as I'm aware). There's no "raw" component type that would just insert a string; even "type" escapes invalid type characters. |
Navigated the issue entirely by avoiding the need for a visitor on this selector. |
:host
is recognized, but:host-context
is not. https://developer.mozilla.org/en-US/docs/Web/CSS/:host-context.The text was updated successfully, but these errors were encountered: