mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Add CSS Error for DisallowedImportRule.
- Add new CSS Error - Add new test case for error - Ensure that test cases use `replace()` and `replaceSync()` Differential Revision: https://phabricator.services.mozilla.com/D69423
This commit is contained in:
parent
c55cd22339
commit
87139a3ea2
2 changed files with 3 additions and 2 deletions
|
@ -137,6 +137,8 @@ pub enum StyleParseErrorKind<'i> {
|
|||
UnexpectedNamespaceRule,
|
||||
/// @import must be before any rule but @charset
|
||||
UnexpectedImportRule,
|
||||
/// @import rules are disallowed in the parser.
|
||||
DisallowedImportRule,
|
||||
/// Unexpected @charset rule encountered.
|
||||
UnexpectedCharsetRule,
|
||||
/// Unsupported @ rule
|
||||
|
@ -149,7 +151,6 @@ pub enum StyleParseErrorKind<'i> {
|
|||
ValueError(ValueParseErrorKind<'i>),
|
||||
/// An error was encountered while parsing a selector
|
||||
SelectorError(SelectorParseErrorKind<'i>),
|
||||
|
||||
/// The property declaration was for an unknown property.
|
||||
UnknownProperty(CowRcStr<'i>),
|
||||
/// The property declaration was for a disabled experimental property.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue