mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-12 09:20:05 +00:00
Merge "Use more consistent background image scaling"
This commit is contained in:
commit
f5fbffb8ca
|
@ -379,7 +379,8 @@ class MathMathML extends MathRenderer {
|
||||||
$class = $classOverride;
|
$class = $classOverride;
|
||||||
}
|
}
|
||||||
|
|
||||||
$style = 'background-image: url(\''. $url. '\'); background-repeat: no-repeat; background-size: contain;';
|
// TODO: move the common styles to the global stylesheet!
|
||||||
|
$style = 'background-image: url(\''. $url. '\'); background-repeat: no-repeat; background-size: 100% 100%;';
|
||||||
$this->correctSvgStyle( $this->getSvg(), $style );
|
$this->correctSvgStyle( $this->getSvg(), $style );
|
||||||
if ( $class ) { $attribs['class'] = $class; }
|
if ( $class ) { $attribs['class'] = $class; }
|
||||||
if ( $style ) { $attribs['style'] = $style; }
|
if ( $style ) { $attribs['style'] = $style; }
|
||||||
|
|
Loading…
Reference in a new issue