You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are drafts for CSS extensions that use arguments to pseudo-element selectors (ie ::slotted(.foo) or ::before(2)) to allow additional information.
the parser allowed any pseudo-element to have optional arguments (instead of special-casing ::slotted(.foo)? or
the css-tree constructor took an additional configuration option containing all the valid pseudoelements and whether arguments were forbidden, allowed, or required?
Thanks again for all the parsing work!
The text was updated successfully, but these errors were encountered:
Yep, I thought about it, but had no any use case. I don't see any reason for any pseudo-element to be a functional-pseudo. Even it's not a standard yet ;)
I working on pseudos right now. So I'm going to do first point ;)
the css-tree constructor took an additional configuration option containing all the valid pseudoelements and whether arguments were forbidden, allowed, or required?
Yes, I believe it will be available later by setting custom consumer for pseudos, functions and at-rules. It's not ready yet, but it's likely to appear in future releases.
There are drafts for CSS extensions that use arguments to pseudo-element selectors (ie
::slotted(.foo)
or::before(2)
) to allow additional information.Rather than something like hardcoding lib/parser/type/PseudoElement.js#L20 what if:
::slotted(.foo)
? orcss-tree
constructor took an additional configuration option containing all the valid pseudoelements and whether arguments were forbidden, allowed, or required?Thanks again for all the parsing work!
The text was updated successfully, but these errors were encountered: