mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Error reporting fixes for media queries.
Do it so that we always try to evaluate the media expression and the modern syntax last, so that the most specific error message comes up. Bug: 1422225 Reviewed-by: xidorn MozReview-Commit-ID: 2tqdAsWh6Kh
This commit is contained in:
parent
3a92fd1cfc
commit
2d2e84aad5
4 changed files with 28 additions and 56 deletions
|
@ -106,12 +106,12 @@ pub enum StyleParseErrorKind<'i> {
|
|||
PropertyDeclarationValueNotExhausted,
|
||||
/// An unexpected dimension token was encountered.
|
||||
UnexpectedDimension(CowRcStr<'i>),
|
||||
/// Expected identifier not found.
|
||||
ExpectedIdentifier(Token<'i>),
|
||||
/// Missing or invalid media feature name.
|
||||
MediaQueryExpectedFeatureName(CowRcStr<'i>),
|
||||
/// Missing or invalid media feature value.
|
||||
MediaQueryExpectedFeatureValue,
|
||||
/// A media feature range operator was not expected.
|
||||
MediaQueryUnexpectedOperator,
|
||||
/// min- or max- properties must have a value.
|
||||
RangedExpressionWithNoValue,
|
||||
/// A function was encountered that was not expected.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue