fix: adjust-size to size-adjust

Had too much coffee
This commit is contained in:
alistair3149 2024-06-19 16:23:46 -04:00 committed by H. C. Kruse
parent d0c790ead5
commit e7f850e301
No known key found for this signature in database
GPG key ID: 0EADE441303A09B4

View file

@ -34,13 +34,13 @@ class FontFaceAtRuleSanitizerExtender extends FontFaceAtRuleSanitizer {
// Only allow the font-family if it begins with "TemplateStyles"
$this->propertySanitizer->setKnownProperties( [
'adjust-size' => new Alternative( [ $auto, $matcherFactory->lengthPercentage() ] ),
'ascent-override' => new Alternative( [ $auto, $matcherFactory->lengthPercentage() ] ),
'descent-override' => new Alternative( [ $auto, $matcherFactory->lengthPercentage() ] ),
'font-display' => new Alternative( [
new KeywordMatcher( [ 'auto', 'block', 'swap', 'fallback', 'optional' ] )
] ),
'line-gap-override' => new Alternative( [ $auto, $matcherFactory->lengthPercentage() ] )
'line-gap-override' => new Alternative( [ $auto, $matcherFactory->lengthPercentage() ] ),
'size-adjust' => new Alternative( [ $auto, $matcherFactory->lengthPercentage() ] )
] );
}
}