-
Notifications
You must be signed in to change notification settings - Fork 61
Double Colon CssSyntaxError #222
Comments
@KITSDominicWhite Sorry, I am not very clear with your problem. What do you mean 'a single on one' and 'double on the other'? Can you give different code snippets with detailed stylelint configs and package versions? |
According to #221, I guess you want to lint |
@chinesedfan The specific issue that is gathered here is the : in the before. There is a further discussion around the nth-last-child which I raised separately. My point is in CSS; before should be pre-appended with a double colon. If this is the case, it fails. It must be a valid CSS snippet, as it validates as correct with a single colon... |
@KITSDominicWhite Do you mean I think this processor can not lint |
Currently we have:
modifier: css':nth-last-child(1) ${StyledText}::before'
when running Stylelint under this processor it comes up with the following:
However, before is a pseudo-element [https://www.growingwiththeweb.com/2012/08/pseudo-classes-vs-pseudo-elements.html] which should be prefixed with a double colon rather than single. The CSS for this we are trying to test is:
If we have a single on one and double on the other the test fails, but we cannot have double on both due to the above issue. It works with a single colon on both, but isn't technically correct.
The text was updated successfully, but these errors were encountered: