-
Is it possible to use PostCSS to verify if a given string is a valid CSS and get all syntax errors if it isn't? I've played with just running the PostCSS over the string, but in that scenario it throws My use-case is that I have a service that allows users to publish websites (https://roam.garden/) and one of the inputs I have is a custom CSS field. Stylelint seems like a fit, but it does not work in the Browser atm =\ stylelint/stylelint#4796 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
PostCSS does not check syntax inside declaration values and at-rule params. It is better to use |
Beta Was this translation helpful? Give feedback.
PostCSS does not check syntax inside declaration values and at-rule params.
It is better to use
csstree
by @lahmatiy which validates more errors.