When using VS Code to write html, if I add embedded CSS in the style element, the syntax highlighting changes the document to be styled as if the entire document was CSS.
I have tried;
- Disabling all extensions and reloading VS Code.
- Removing all extensions entirely and reloading VS Code.
- Adding an association for html files for .html.


This was caused by the HTML comment in the style element. That's legal for older browsers, but see the following quote from the CSS 2.1 spec:
And in the CSS 3 spec,
<!--and-->basically just do nothing. The text between them will be treated as if they were written without the wrapping<!--and-->.But I have no idea if VS Code's builtin language support for style elements in HTML is following the CSS spec with respect to that, or which spec version it's following.