# Bug 118737 (displaystyle)

Product: WebKit Reporter: Frédéric Wang (:fredw) <fred.wang>
Component: MathMLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED
Severity: Normal CC: alex, cfleizach, mrobinson
Priority: P2
Version: 528+ (Nightly build)
Hardware: All
OS: All
URL: http://www.w3.org/TR/2010/REC-MathML3-20101021/chapter3.html#presm.scriptlevel
Bug Depends on: 99620, 133845, 155542, 155638, 155639, 155714
Bug Blocks: 3251, 84019, 124907
Attachments:
Description Flags
testcase none

 Frédéric Wang (:fredw) 2013-07-16 09:49:06 PDT Created attachment 206790 [details] testcase and currently display the formula as a block or inline box. However, they should also set the initial value of displaystyle to true and false respectively. The displaystyle value can also be set via an explicit displaystyle attribute and is reset to false by some elements (like mfrac, scripts, roots etc). When displaystyle=true, the operators marked largeop (either via an explicit attribute or as computed from the operator dictionary) should be drawn larger. When displaystyle=false, the operators marked movablelimits (either via an explicit attribute or as computed from the operator dictionary) should have its under/over limits drawn as sub/sup. See the testcase, where a sum symbol is used (largeop and movablelimits per the operator dictionary). See also bucket 3 of the MathML Acid3 tests: http://fred-wang.github.io/AcidTestsMathML/acid3/d http://fred-wang.github.io/AcidTestsMathML/acid3/description.html See chapter 3 of the MathML spec for details: http://www.w3.org/TR/2010/REC-MathML3-20101021/chapter3.html Frédéric Wang (:fredw) 2016-07-11 11:57:21 PDT Displaystyle maybe be involved in other cases (e.g. in scriptlevel incrementation, see bug 49309) but I think we now support the most important cases (largeop, movablelimits and some choice of MATH constants). So I guess we can close this bug.