WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
106600
Bad spacing inside MathML formulas when text-indent is specified
https://bugs.webkit.org/show_bug.cgi?id=106600
Summary
Bad spacing inside MathML formulas when text-indent is specified
Frédéric Wang (:fredw)
Reported
2013-01-10 14:01:36 PST
Created
attachment 182201
[details]
Testcase See the testcase, where I use the CSS rule p { text-indent: 2em; } There are large gaps inside the formulas in Chrome 24. This seems similar to this old Gecko's bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=454085
and could be fixed the same way. Interestingly, if you uncomment the <script> and let MathJax process the <math>, then the page renders correctly.
Attachments
Testcase
(88.08 KB, text/html)
2013-01-10 14:01 PST
,
Frédéric Wang (:fredw)
no flags
Details
Patch V1
(1.29 KB, patch)
2013-05-06 00:52 PDT
,
Frédéric Wang (:fredw)
no flags
Details
Formatted Diff
Diff
Patch V2
(2.86 KB, patch)
2013-05-16 12:21 PDT
,
Frédéric Wang (:fredw)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Frédéric Wang (:fredw)
Comment 1
2013-01-14 02:45:50 PST
Fixing this bug should just be a matter of adding "text-indent: 0" rules in Source/WebCore/css/mathml.css
Frédéric Wang (:fredw)
Comment 2
2013-05-06 00:51:35 PDT
So it seems that the bug appears with the latest LaTeXML version (with new CSS style). See for instance my blog:
http://www.maths-informatique-jeux.com/blog/frederic/?post/2013/04/04/Suslin%E2%80%99s-Problem
Frédéric Wang (:fredw)
Comment 3
2013-05-06 00:52:10 PDT
Created
attachment 200640
[details]
Patch V1
Frédéric Wang (:fredw)
Comment 4
2013-05-08 14:49:08 PDT
Can someone please review the patch?
Martin Robinson
Comment 5
2013-05-09 09:32:25 PDT
(In reply to
comment #4
)
> Can someone please review the patch?
This patch doesn't change any test results or include any new tests?
Frédéric Wang (:fredw)
Comment 6
2013-05-12 02:33:03 PDT
(In reply to
comment #5
)
> This patch doesn't change any test results or include any new tests?
This only resets the text-indent value on the <math> element. So this only has an effect on pages that modify text-indent and contain a <math> element. I thought it was a trivial change so didn't need tests. Apparently, everything is green above.
Martin Robinson
Comment 7
2013-05-12 12:46:05 PDT
(In reply to
comment #6
)
> (In reply to
comment #5
) > > This patch doesn't change any test results or include any new tests? > > This only resets the text-indent value on the <math> element. So this only has an effect on pages that modify text-indent and contain a <math> element. I thought it was a trivial change so didn't need tests. Apparently, everything is green above.
Martin Robinson
Comment 8
2013-05-12 12:47:42 PDT
(In reply to comment #
> (In reply to comment # > This patch doesn't change any test results or include any new tests? > > This only resets the text-indent value on the <math> element. So this only has an effect on pages that modify text-indent and contain a <math> element. I thought it was a trivial change so didn't need tests. Apparently, everything is green above.
I think it could be useful for this to have a test so that we don't regress here. It seems that a reference test could be fairly trivial in this case actually. In general, changes to WebCore need tests and I'd say doubly so for changes to layout.
Frédéric Wang (:fredw)
Comment 9
2013-05-16 12:21:33 PDT
Created
attachment 201981
[details]
Patch V2
WebKit Commit Bot
Comment 10
2013-05-17 09:25:40 PDT
Comment on
attachment 201981
[details]
Patch V2 Clearing flags on attachment: 201981 Committed
r150264
: <
http://trac.webkit.org/changeset/150264
>
WebKit Commit Bot
Comment 11
2013-05-17 09:25:42 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug