How to add CSS properties?

Hey,

PhpStorm alert an error on this line:

background: linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* W3C */

Invalid CSS property value linear-gradient

But linear-gradient is (on this position) right. I think PhpStorm just doesn't know this property.
How to add CSS properties PhpStorm (3.0)?

Thanks tye

6 comments
Comment actions Permalink

Hi

Are you sure that linear-gradient is not browser dependend?
Look here http://css-tricks.com/examples/CSS3Gradient/

Regards,
Dmitry

0
Comment actions Permalink

linear-gradient isn't browser specific, like -webkit-linear-gradient.

I think it is okay. (?)

0
Comment actions Permalink

Okay, i found it.

File --> Settings --> Inspections --> CSS --> Unknow CSS property --> Custom CSS properties

Thx tye

0
Comment actions Permalink

I cant seem to get custom CSS properties working when W3C validation is also turned on. Also, how should custom properties be separated, by comman, semicolon?

0
Comment actions Permalink

You can separat the properties by a comma.
Example: saturn,moon,saturnmoon

I cant seem to get custom CSS properties working when W3C validation is also turned on.

I don't know, i think it is a bug.

0
Comment actions Permalink

how did you use that option for making linear-gradient valid ?  
that is, for solvind this:
http://youtrack.jetbrains.com/issue/WI-937

0

Please sign in to leave a comment.