CSS intellisense doesn't work in incomplete style block . Fixes #16651

This commit is contained in:
Martin Aeschlimann
2016-12-07 17:21:51 +01:00
parent 875d16de88
commit aba60c3d95
3 changed files with 9 additions and 3 deletions

View File

@@ -45,6 +45,12 @@ suite('HTML Embedded Support', () => {
assertLanguageId('<html><style>foo { }</sty|le></html>', 'html');
});
test('Styles - Incomplete HTML', function (): any {
assertLanguageId('|<html><style>foo { }', 'html');
assertLanguageId('<html><style>fo|o { }', 'css');
assertLanguageId('<html><style>foo { }|', 'css');
});
test('Style in attribute', function (): any {
assertLanguageId('<div id="xy" |style="color: red"/>', 'html');
assertLanguageId('<div id="xy" styl|e="color: red"/>', 'html');