4 ms·
I write a ton of CSS and could not find a command line stylesheet checker. I did find the NuHTML checker from W3C, which also checks the file’s CSS: https://git
by tomcam 4y ago
I write a ton of CSS and could not find a command line stylesheet checker. I did find the NuHTML checker from W3C, which also checks the file’s CSS: https://github.com/validator/validator/releases/tag/20.6.30 https://github.com/validator/validator/releases/tag/20.6.30
AFAIK it doesn’t have an option to check a standalone CSS file.
I wrote a script to insert a CSS file into a dummy one-line HTML file, so that I can pass a CSS file to the script, and when errors are generated from the CSS, they are given using the correct line number.
I have written many more complex and perhaps more interesting Scripps, but this is the one I am, by far the most proud of.
- tomcam 4y ago* scripts not Scripps. Thanks, Siri.