@@ -9452,8 +9452,8 @@ mod tests {
9452
9452
"@font-face{src:url(test.ttc)format(\"collection\"),url(test.ttf)format(\"truetype\")}",
9453
9453
);
9454
9454
minify_test(
9455
- "@font-face {src: url(\"test.otf\") format(opentype) tech(feature -aat);}",
9456
- "@font-face{src:url(test.otf)format(\"opentype\")tech(feature -aat)}",
9455
+ "@font-face {src: url(\"test.otf\") format(opentype) tech(features -aat);}",
9456
+ "@font-face{src:url(test.otf)format(\"opentype\")tech(features -aat)}",
9457
9457
);
9458
9458
minify_test(
9459
9459
"@font-face {src: url(\"test.woff\") format(woff) tech(color-colrv1);}",
@@ -9469,12 +9469,12 @@ mod tests {
9469
9469
);
9470
9470
// multiple tech
9471
9471
minify_test(
9472
- "@font-face {src: url(\"test.woff\") format(woff) tech(feature -opentype, color-sbix);}",
9473
- "@font-face{src:url(test.woff)format(\"woff\")tech(feature -opentype,color-sbix)}",
9472
+ "@font-face {src: url(\"test.woff\") format(woff) tech(features -opentype, color-sbix);}",
9473
+ "@font-face{src:url(test.woff)format(\"woff\")tech(features -opentype,color-sbix)}",
9474
9474
);
9475
9475
minify_test(
9476
- "@font-face {src: url(\"test.woff\") format(woff) tech(incremental, color-svg, feature -graphite, feature -aat);}",
9477
- "@font-face{src:url(test.woff)format(\"woff\")tech(incremental,color-svg,feature -graphite,feature -aat)}",
9476
+ "@font-face {src: url(\"test.woff\") format(woff) tech(incremental, color-svg, features -graphite, features -aat);}",
9477
+ "@font-face{src:url(test.woff)format(\"woff\")tech(incremental,color-svg,features -graphite,features -aat)}",
9478
9478
);
9479
9479
// format() function must precede tech() if both are present
9480
9480
minify_test(
@@ -9496,15 +9496,15 @@ mod tests {
9496
9496
// TODO(CGQAQ): make this test pass when we have strict mode
9497
9497
// ref: https://github.com/web-platform-tests/wpt/blob/9f8a6ccc41aa725e8f51f4f096f686313bb88d8d/css/css-fonts/parsing/font-face-src-tech.html#L45
9498
9498
// error_test(
9499
- // "@font-face {src: url(\"foo.ttf\") tech(feature -opentype) format(opentype);}",
9499
+ // "@font-face {src: url(\"foo.ttf\") tech(features -opentype) format(opentype);}",
9500
9500
// ParserError::AtRuleBodyInvalid,
9501
9501
// );
9502
9502
// error_test(
9503
9503
// "@font-face {src: url(\"foo.ttf\") tech();}",
9504
9504
// ParserError::AtRuleBodyInvalid,
9505
9505
// );
9506
9506
// error_test(
9507
- // "@font-face {src: url(\"foo.ttf\") tech(\"feature -opentype\");}",
9507
+ // "@font-face {src: url(\"foo.ttf\") tech(\"features -opentype\");}",
9508
9508
// ParserError::AtRuleBodyInvalid,
9509
9509
// );
9510
9510
// error_test(
0 commit comments