Bug 71857: Strip positioning from SVG fallback image styles
Change-Id: Ie664b421ee40c3d278605bd03cb669509319d862
This commit is contained in:
parent
4c544f002b
commit
f2e9dbe70c
|
@ -349,7 +349,7 @@ class MathMathML extends MathRenderer {
|
|||
$style .= " ".$styles[1]; // merge styles
|
||||
if ( $this->getMathStyle() === MW_MATHSTYLE_DISPLAY ) {
|
||||
// TODO: Improve style cleaning
|
||||
$style = preg_replace( '/margin\-(left|right)\:\s*\d+(\%|in|cm|mm|em|ex|pt|pc|px)\;/', '', $style );
|
||||
$style = preg_replace( '/margin\-(left|right)\:\s*\d+(\%|in|cm|mm|em|ex|pt|pc|px)\;|position:\s*absolute;\s*left:\s*0px;/', '', $style );
|
||||
}
|
||||
}
|
||||
// TODO: Figure out if there is a way to construct
|
||||
|
|
Loading…
Reference in New Issue