mirror of
https://github.com/octfx/mediawiki-extensions-TemplateStylesExtender.git
synced 2024-11-28 02:00:26 +00:00
fix: adjust-size to size-adjust
Had too much coffee
This commit is contained in:
parent
d0c790ead5
commit
e7f850e301
|
@ -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() ] )
|
||||
] );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue