Bug 163691 - REGRESSION(r202970): MathML: upper and lower bounds in summation are not aligned correctly
Summary: REGRESSION(r202970): MathML: upper and lower bounds in summation are not alig...
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: MathML (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-10-19 13:16 PDT by Brent Fulgham
Modified: 2016-10-19 13:30 PDT (History)
2 users (show)

See Also:


Attachments
Example (333 bytes, text/html)
2016-10-19 13:16 PDT, Brent Fulgham
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2016-10-19 13:16:42 PDT
Created attachment 292103 [details]
Example

Using the attached test case, the upper and lower bounds for the summation are rendered after the Sigma, whereas the upper bound should be directly above and the lower bound should be directly below the Sigma so that the successive term “i” is right next to the symbol.
Comment 1 Brent Fulgham 2016-10-19 13:19:05 PDT
Frédéric: I received this report but am not sure if the claim is true. Should the summation case always have the range directly above and below the Sigma? It seems like it works that way in the Mozilla "MathML Torture Test", but the attached test case causes the range to be rendered next to the Sigma symbol.

I know I have seen technical writing where the summation ranges are shown to the right of the Sigma character, so I'm wondering if the behavior the reporter complained about is actually correct?
Comment 2 Frédéric Wang (:fredw) 2016-10-19 13:22:15 PDT
I think that is the expected behavior. If you want to force display style, you must use either <math display="block"> or <math displaystyle="true"> (the former implies the latter). The CSS "display: block" does not affect display style.

IIRC, Mozilla MathML torture test uses <math display="block"> in most cases.
Comment 3 Frédéric Wang (:fredw) 2016-10-19 13:24:57 PDT
See also "displaystyle" section in https://webkit.org/blog/6803/improvements-in-mathml-rendering/
Comment 4 Brent Fulgham 2016-10-19 13:29:37 PDT
This is correct behavior.
Comment 5 Brent Fulgham 2016-10-19 13:30:04 PDT
<rdar://problem/27489377>