csslint
csslint copied to clipboard
Allow slash in box-shadow values
Hi,
CSSLint marks the following as error:
border-radius: 100px/10px;
Expected (<'border-radius'>) but found '/'.
As far as I can tell this is valid syntax for specifying horizontal and vertical values separately.
Opinions?
It is valid. You use that syntax to specify an ellipse arc.
https://developer.mozilla.org/en-US/docs/CSS/border-radius
I've opened a pull request which should fix this issue in parser-lib: https://github.com/nzakas/parser-lib/pull/36
In the meantime, you can use the following workaround:
border-radius: 100px 100px / 10px;