Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XXXX is not a valid value for the 'yyyy-color' property

Visual Studio does a lot to help you make sure that your html/xhtml is valid and well formed. This is nice except for when you are breaking those rules knowing full well what you are doing and why. I really would like to 'turn off' the validation messages that tell me that css 3 named colors are not valid for the version of css it thinks I'm targeting.

How do I get VS to calm down and not warn me about some of this stuff?

like image 634
minty Avatar asked Dec 21 '25 13:12

minty


1 Answers

Try Options > Tools > Text Editor > CSS > CSS Specific.

You can uncheck one or more of:

  • Detect Errors
  • Detect Unknown Properties
  • Detect Invalid Values
like image 144
CJM Avatar answered Dec 23 '25 09:12

CJM