csslint icon indicating copy to clipboard operation
csslint copied to clipboard

Allow slash in box-shadow values

Open timeinfeldt opened this issue 14 years ago • 2 comments

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?

timeinfeldt avatar Nov 08 '12 17:11 timeinfeldt

It is valid. You use that syntax to specify an ellipse arc.

https://developer.mozilla.org/en-US/docs/CSS/border-radius

Francisc avatar Nov 08 '12 17:11 Francisc

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;

mattiacci avatar Nov 12 '12 04:11 mattiacci