-
Notifications
You must be signed in to change notification settings - Fork 48
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
fix: isPseudoElement()
supports :first-letter
and :first-line
#256
fix: isPseudoElement()
supports :first-letter
and :first-line
#256
Conversation
Browsers supports also `:first-letter` and `:first-line` pseudo-elements introduced in CSS2. - https://developer.mozilla.org/en-US/docs/Web/CSS/::first-letter - https://developer.mozilla.org/en-US/docs/Web/CSS/::first-line
@ybiquitous hm, so we parse them as pseudo elements? I think it is bug (for |
@alexander-akait Thanks for the quick feedback. Do you mean it's unnecessary to check export function isPseudoElement (node) {
return isPseudo(node) && node.value && node.value.startsWith("::");
} I don't know the background that |
Oh... that is bad, I messed it I see what you want, ideally we should rename function to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping me tomorrow, I will do release (I relocated to another city and small busy today)
@alexander-akait Don't mind. Thank you for the review. |
Thanks |
@ybiquitous Released https://github.com/postcss/postcss-selector-parser/releases/tag/v6.0.10, sorry for delay |
@alexander-akait Thank you! 🎉 |
Browsers supports also
:first-letter
and:first-line
pseudo-elements introduced in CSS2.