mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Serialize font-face src tech() keywords in mixed-case to match the spec; fix the associated WPT test to do case-insensitive comparisons
Differential Revision: https://phabricator.services.mozilla.com/D164202
This commit is contained in:
parent
6162f82c6b
commit
e7dc4a47cb
1 changed files with 6 additions and 4 deletions
|
@ -189,14 +189,16 @@ impl ToCss for FontFaceSourceTechFlags {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Being CSS keywords, these are ASCII-case-insensitive; but we serialize
|
||||||
|
// as mixed-case to match how they're listed in the spec.
|
||||||
write_if_flag!("features-opentype" => FEATURES_OPENTYPE);
|
write_if_flag!("features-opentype" => FEATURES_OPENTYPE);
|
||||||
write_if_flag!("features-aat" => FEATURES_AAT);
|
write_if_flag!("features-aat" => FEATURES_AAT);
|
||||||
write_if_flag!("features-graphite" => FEATURES_GRAPHITE);
|
write_if_flag!("features-graphite" => FEATURES_GRAPHITE);
|
||||||
write_if_flag!("color-colrv0" => COLOR_COLRV0);
|
write_if_flag!("color-COLRv0" => COLOR_COLRV0);
|
||||||
write_if_flag!("color-colrv1" => COLOR_COLRV1);
|
write_if_flag!("color-COLRv1" => COLOR_COLRV1);
|
||||||
write_if_flag!("color-svg" => COLOR_SVG);
|
write_if_flag!("color-SVG" => COLOR_SVG);
|
||||||
write_if_flag!("color-sbix" => COLOR_SBIX);
|
write_if_flag!("color-sbix" => COLOR_SBIX);
|
||||||
write_if_flag!("color-cbdt" => COLOR_CBDT);
|
write_if_flag!("color-CBDT" => COLOR_CBDT);
|
||||||
write_if_flag!("variations" => VARIATIONS);
|
write_if_flag!("variations" => VARIATIONS);
|
||||||
write_if_flag!("palettes" => PALETTES);
|
write_if_flag!("palettes" => PALETTES);
|
||||||
write_if_flag!("incremental" => INCREMENTAL);
|
write_if_flag!("incremental" => INCREMENTAL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue