stylo: Error reporting for unknown media features

This commit is contained in:
Fernando Jiménez Moreno 2017-09-08 12:48:50 +02:00
parent 54cd23adb8
commit 337a90329c
12 changed files with 206 additions and 109 deletions

View file

@ -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>),