Bug 160074 - Reset font-style on the <math> element
Summary: Reset font-style on the <math> element
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: MathML (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Frédéric Wang (:fredw)
URL:
Keywords:
Depends on:
Blocks: 156839
  Show dependency treegraph
 
Reported: 2016-07-21 23:11 PDT by Frédéric Wang (:fredw)
Modified: 2016-07-23 01:40 PDT (History)
5 users (show)

See Also:


Attachments
testcase (3.89 KB, text/html)
2016-07-21 23:11 PDT, Frédéric Wang (:fredw)
no flags Details
Patch (11.46 KB, patch)
2016-07-21 23:30 PDT, Frédéric Wang (:fredw)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frédéric Wang (:fredw) 2016-07-21 23:11:50 PDT
Created attachment 284308 [details]
testcase

This is another case for bug 156839: I think we should follow Gecko here and reset font-style on the <math> tag.

Jacques Distler reported the following issue on the instiki Sandbox: "In Theorem 2, the absolute-value signs are slanted. I assume this is because the <math> has inherited the italics style of the surrounding text. But this looks wrong.". Actually the whole text is slanted but most noticeable with the absolute value signs. See the attachment.
Comment 1 Frédéric Wang (:fredw) 2016-07-21 23:30:48 PDT
Created attachment 284309 [details]
Patch
Comment 2 Manuel Rego Casasnovas 2016-07-22 08:03:06 PDT
Comment on attachment 284309 [details]
Patch

The patch LGTM but do we need such a big test case? Is not enough a simpler one to reproduce the issue? :-)
Comment 3 WebKit Commit Bot 2016-07-23 01:40:03 PDT
Comment on attachment 284309 [details]
Patch

Clearing flags on attachment: 284309

Committed r203640: <http://trac.webkit.org/changeset/203640>
Comment 4 WebKit Commit Bot 2016-07-23 01:40:06 PDT
All reviewed patches have been landed.  Closing bug.