-
Notifications
You must be signed in to change notification settings - Fork 8
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
Allow extension of pseudo classes #8
Comments
Yeah that's a bug. Can you add a failing test case? It doesn't parse the selector or anything. Not sure why that happens. Maybe I have a bad reg exp. |
Was just working on a test case now. Thanks |
ohhh i got it. it's this regexp: function replaceRegExp(val) {
return new RegExp(
'(^|\\s|\\>|\\+|~)' +
escapeRegExp(val) +
'($|\\s|\\>|\\+|~|\\:)'
, 'g'
)
} if i take out the i don't remember exactly why, but that regexp is to split up selectors. ex. extending i think the only really robust way to do it is to actually parse the selectors. |
Problem
In many cases I need to share a pseudo state such as active with multiple selectors.
Intuitively I would make a button:active then share the active state with button bars tabs etc. Am not able to do this with rework-inherit
Steps to reproduce
Expected results
Pseudo selector would be extended.
Actual result
No output is generated for the large variation.
The text was updated successfully, but these errors were encountered: