Regression since css-syntax-patches-for-csstree@1.0.18
If relative color channels have `calc()` and that `calc()` contains a value with units, it was previously correctly considered invalid, but is now considered valid.
Examples:
* `rgb(from rebeccapurple calc(r + 1%) g b)`
* `hsl(from rebeccapurple calc(h + 1deg) s l)`
Tests:
* https://github.com/web-platform-tests/wpt/blob/master/css/css-color/parsing/color-invalid-relative-color.html
5 条评论