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
Please sign in to leave a comment.
Hi
Are you sure that linear-gradient is not browser dependend?
Look here http://css-tricks.com/examples/CSS3Gradient/
Regards,
Dmitry
linear-gradient isn't browser specific, like -webkit-linear-gradient.
I think it is okay. (?)
Okay, i found it.
File --> Settings --> Inspections --> CSS --> Unknow CSS property --> Custom CSS properties
Thx tye
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?
You can separat the properties by a comma.
Example: saturn,moon,saturnmoon
I don't know, i think it is a bug.
how did you use that option for making linear-gradient valid ?
that is, for solvind this:
http://youtrack.jetbrains.com/issue/WI-937