Skip to content

Commit

Permalink
Convert the @font-feature-values declarations to lowercase
Browse files Browse the repository at this point in the history
The @font-feature-values declaration identifiers are asci case insensitive.
We should convert all of them to lowercase to be able to reduce the same
declarations. Also gecko stores them as lowercase in gfxFontFeatureValueSet.
  • Loading branch information
canova committed Aug 24, 2017
1 parent d4ddec8 commit 0251b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/style/stylesheets/font_feature_values_rule.rs
Expand Up @@ -166,7 +166,7 @@ impl<'a, 'b, 'i, T> DeclarationParser<'i> for FFVDeclarationsParser<'a, 'b, T>
-> Result<(), ParseError<'i>> {
let value = input.parse_entirely(|i| T::parse(self.context, i))?;
let new = FFVDeclaration {
name: Atom::from(&*name),
name: Atom::from(&*name).to_ascii_lowercase(),
value: value,
};
update_or_push(&mut self.declarations, new);
Expand Down

0 comments on commit 0251b2b

Please sign in to comment.