-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
error on empty css declarations - fixes #3801
- Loading branch information
1 parent
e55bf40
commit 74fa244
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
test/validator/samples/invalid-empty-css-declaration/errors.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[{ | ||
"code": "invalid-declaration", | ||
"message": "Declaration cannot be empty", | ||
"start": { | ||
"line": 11, "column": 0, "character": 93 | ||
}, | ||
"end": { | ||
"line": 11, "column": 0, "character": 93 | ||
}, | ||
"pos": 93, | ||
"frame": " 9: color: blue;\n10: }\n11: </style>\n ^" | ||
}] |
11 changes: 11 additions & 0 deletions
11
test/validator/samples/invalid-empty-css-declaration/input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div class='foo bar'></div> | ||
|
||
<style> | ||
.foo { | ||
color:; | ||
} | ||
.bar { | ||
font:; | ||
color: blue; | ||
} | ||
</style> |