mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Implement parsing/serialization for @font-feature-values rule
This commit is contained in:
parent
c365a39104
commit
43cf493832
11 changed files with 496 additions and 6 deletions
|
@ -18,8 +18,12 @@ pub enum ContextualParseError<'a> {
|
|||
UnsupportedPropertyDeclaration(&'a str, ParseError<'a>),
|
||||
/// A font face descriptor was not recognized.
|
||||
UnsupportedFontFaceDescriptor(&'a str, ParseError<'a>),
|
||||
/// A font feature values descroptor was not recognized.
|
||||
UnsupportedFontFeatureValuesDescriptor(&'a str, ParseError<'a>),
|
||||
/// A keyframe rule was not valid.
|
||||
InvalidKeyframeRule(&'a str, ParseError<'a>),
|
||||
/// A font feature values rule was not valid.
|
||||
InvalidFontFeatureValuesRule(&'a str, ParseError<'a>),
|
||||
/// A keyframe property declaration was not recognized.
|
||||
UnsupportedKeyframePropertyDeclaration(&'a str, ParseError<'a>),
|
||||
/// A rule was invalid for some reason.
|
||||
|
@ -108,9 +112,15 @@ impl<'a> ContextualParseError<'a> {
|
|||
ContextualParseError::UnsupportedFontFaceDescriptor(decl, ref err) =>
|
||||
format!("Unsupported @font-face descriptor declaration: '{}', {}", decl,
|
||||
parse_error_to_str(err)),
|
||||
ContextualParseError::UnsupportedFontFeatureValuesDescriptor(decl, ref err) =>
|
||||
format!("Unsupported @font-feature-values descriptor declaration: '{}', {}", decl,
|
||||
parse_error_to_str(err)),
|
||||
ContextualParseError::InvalidKeyframeRule(rule, ref err) =>
|
||||
format!("Invalid keyframe rule: '{}', {}", rule,
|
||||
parse_error_to_str(err)),
|
||||
ContextualParseError::InvalidFontFeatureValuesRule(rule, ref err) =>
|
||||
format!("Invalid font feature value rule: '{}', {}", rule,
|
||||
parse_error_to_str(err)),
|
||||
ContextualParseError::UnsupportedKeyframePropertyDeclaration(decl, ref err) =>
|
||||
format!("Unsupported keyframe property declaration: '{}', {}", decl,
|
||||
parse_error_to_str(err)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue