4

I want to switch CSS validation in VS2010 SP1 from CSS 2.1 to CSS 3.

I came across this answer:

Is it possible to change CSS Validation scheme in VS2010

What is not clear to me is how to activate CSS 3 validation. I did find that switching HTML validation to HTML 5 causes CSS to be validated as CSS 3 (after installing CSS 3 Intellisense Schema).

However, I would have thought that the HTML level and the CSS level would be orthogonal.

Am I missing something, or does the HTML validation switch truly also control the CSS validation level?

Community
  • 1
  • 1
Eric J.
  • 147,927
  • 63
  • 340
  • 553
  • "I did find that switching HTML validation to HTML 5 causes CSS to be validated as CSS 3" I find that strange too. Does VS2010 come with HTML5 validation out of the box though? I can't remember. – BoltClock Mar 05 '12 at 19:19
  • @BoldClock: I didn't do anything special to get HTML 5 validation, though I had installed SP1 before looking for that setting so not sure if it's pre-SP1 or not. – Eric J. Mar 05 '12 at 19:47

1 Answers1

5

First, right click on the toolbar in VS2010 and enable 'Style Sheet'. Then once a CSS file is open and has focus you can change the target CSS validator from the drop down.

enter image description here

benni_mac_b
  • 8,803
  • 5
  • 39
  • 59