Open yisibl opened 1 month ago
Test case:
Also, following the principle of retaining only the last-defined value, as well as the principle of shortest representation, multiply-specified tuples and multiple blocks are serialized as a single block containing only the last-defined value.
For example, the declaration: https://drafts.csswg.org/css-fonts/#ex-serialize-same-font-feature-values
/* Repeated declaration names, and multiple blocks of the same type*/
@font-feature-values foo {
@swash { pretty: 0; cool: 2; }
@swash { pretty: 1; }
}
would be serialized as:
/* Canonical serialization */
@font-feature-values foo {
@swash { cool: 2; pretty: 1; }
}
Note that when compressing, we also need to handle special versions of Firefox that don't remove the ending semicolon.
@font-feature-values FontName {
font-display: whatever;
}