mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
stylo: Error reporting for unknown media features
This commit is contained in:
parent
54cd23adb8
commit
337a90329c
12 changed files with 206 additions and 109 deletions
|
@ -107,7 +107,13 @@ pub enum StyleParseError<'i> {
|
|||
PropertyDeclarationValueNotExhausted,
|
||||
/// An unexpected dimension token was encountered.
|
||||
UnexpectedDimension(CowRcStr<'i>),
|
||||
/// A media query using a ranged expression with no value was encountered.
|
||||
/// Expected identifier not found.
|
||||
ExpectedIdentifier(Token<'i>),
|
||||
/// Missing or invalid media feature name.
|
||||
MediaQueryExpectedFeatureName(CowRcStr<'i>),
|
||||
/// Missing or invalid media feature value.
|
||||
MediaQueryExpectedFeatureValue,
|
||||
/// min- or max- properties must have a value.
|
||||
RangedExpressionWithNoValue,
|
||||
/// A function was encountered that was not expected.
|
||||
UnexpectedFunction(CowRcStr<'i>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue