reworkcss / css

CSS parser / stringifier for Node.js
MIT License
1.58k stars 253 forks source link

CSS parser not working if css rule is wrong #122

Open amitdhawan opened 5 years ago

amitdhawan commented 5 years ago

If i provide below string to pasrer 'body { font-siz: 12px; }' it generates the output as body { font-siz: 12px; }

As, i have given the rule font-siz and not font-size it should fail as the font rule name is not correct.

Any help?

ensemblebd commented 5 years ago
let raw = 'body{font-siZ: 12px;}';
let result = css.parse(raw, {silent: true});