https://bugs.webkit.org/show_bug.cgi?id=106600
Patch by Frédéric Wang <fred.wang@free.fr> on 2013-05-17
Reviewed by Martin Robinson.
Source/WebCore:
When MathML is used in a HTML page that modifies the CSS text-indent,
large gaps appear inside the mathematical expressions. Resetting it to
0 on the math root (as Gecko does) fixes the issue.
Tests: mathml/presentation/text-indent.html
mathml/presentation/text-indent-expected.html
* css/mathml.css:
(math): reset text-indent to its default value.
LayoutTests:
New test to verify that the text-indent property is reset to 0 on
the MathML root.
* mathml/presentation/text-indent-expected.html: Added.
* mathml/presentation/text-indent.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@150264
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2013-05-17 Frédéric Wang <fred.wang@free.fr>
+
+ Bad spacing inside MathML formulas when text-indent is specified
+ https://bugs.webkit.org/show_bug.cgi?id=106600
+
+ Reviewed by Martin Robinson.
+
+ New test to verify that the text-indent property is reset to 0 on
+ the MathML root.
+
+ * mathml/presentation/text-indent-expected.html: Added.
+ * mathml/presentation/text-indent.html: Added.
+
2013-05-16 Jer Noble <jer.noble@apple.com>
Some media/track tests fail or assert on Mac
--- /dev/null
+<!DOCTYPE html>
+<html>
+<body style="text-indent: 2em">
+
+ <math style="text-indent: 0">
+ <mn>2</mn>
+ <mo>+</mo>
+ <mfrac>
+ <mi>x</mi>
+ <mi>y</mi>
+ </mfrac>
+ </math>
+
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<html>
+<body style="text-indent: 2em">
+
+ <math>
+ <mn>2</mn>
+ <mo>+</mo>
+ <mfrac>
+ <mi>x</mi>
+ <mi>y</mi>
+ </mfrac>
+ </math>
+
+</body>
+</html>
+2013-05-17 Frédéric Wang <fred.wang@free.fr>
+
+ Bad spacing inside MathML formulas when text-indent is specified
+ https://bugs.webkit.org/show_bug.cgi?id=106600
+
+ Reviewed by Martin Robinson.
+
+ When MathML is used in a HTML page that modifies the CSS text-indent,
+ large gaps appear inside the mathematical expressions. Resetting it to
+ 0 on the math root (as Gecko does) fixes the issue.
+
+ Tests: mathml/presentation/text-indent.html
+ mathml/presentation/text-indent-expected.html
+
+ * css/mathml.css:
+ (math): reset text-indent to its default value.
+
2013-05-17 Alberto Garcia <agarcia@igalia.com>
Fix code that expects Page::chrome() to return a pointer
math {
-webkit-line-box-contain: glyphs replaced;
line-height: 0;
+ text-indent: 0;
}
mtext {
line-height: 1.0;