Disable overwriting of the fallback image
The style information for the fallback image is quite sophisticated and should not be changed. Bug: 72626 Change-Id: I553cf7209d87517b8c8841cc25df74ebd4c683f4
This commit is contained in:
parent
bc52c77d24
commit
248ea7ea91
|
@ -370,10 +370,9 @@ class MathMathML extends MathRenderer {
|
||||||
'\'); background-repeat: no-repeat; background-size: 100% 100%;';
|
'\'); 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; }
|
|
||||||
// Don't use an empty span, as that is going to be stripped by HTML tidy
|
// Don't use an empty span, as that is going to be stripped by HTML tidy
|
||||||
// when enabled (which is true in production).
|
// when enabled (which is true in production).
|
||||||
return Xml::element( 'meta', $this->getAttributes( 'span', $attribs , array( 'aria-hidden' => 'true' ) ) );
|
return Xml::element( 'meta', $this->getAttributes( 'span', $attribs , array( 'aria-hidden' => 'true', 'style' => $style ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue