We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, So I found out that css-what does not parse anything inside :host() and :host-context() and just return the value as it is.
For example: If you try to parse :host-context(#test.cl) it returns- [[{type: "pseudo", name: "host-context", data: "#test.cl"}]]
:host-context(#test.cl)
[[{type: "pseudo", name: "host-context", data: "#test.cl"}]]
Expected output- [[{type: "pseudo", name: "host-context", data: [[ {type:"attribute", name:"id", value="test"....}, {type:"attribute", name:"class", value="cl"....} ]] }]]
[[{type: "pseudo", name: "host-context", data: [[ {type:"attribute", name:"id", value="test"....}, {type:"attribute", name:"class", value="cl"....} ]] }]]
Thanks!
The text was updated successfully, but these errors were encountered:
:host and :host-context aren't a part of the current list of pseudo selectors to parse, in
:host
:host-context
css-what/src/parse.ts
Line 99 in bf7068e
Happy to accept a PR that adds them to this list.
Sorry, something went wrong.
:host and :host-context aren't a part of the current list of pseudo selectors to parse, in css-what/src/parse.ts Line 99 in bf7068e const unpackPseudos = new Set(["has", "not", "matches", "is"]); Happy to accept a PR that adds them to this list.
Here you go - #288
Awesome, thanks!
No branches or pull requests
Hi,
So I found out that css-what does not parse anything inside :host() and :host-context() and just return the value as it is.
For example:
If you try to parse
:host-context(#test.cl)
it returns-[[{type: "pseudo", name: "host-context", data: "#test.cl"}]]
Expected output-
[[{type: "pseudo", name: "host-context", data: [[ {type:"attribute", name:"id", value="test"....}, {type:"attribute", name:"class", value="cl"....} ]] }]]
Thanks!
The text was updated successfully, but these errors were encountered: