<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>118737</bug_id>
          <alias>displaystyle</alias>
          <creation_ts>2013-07-16 09:49:06 -0700</creation_ts>
          <short_desc>Add support for displaystyle</short_desc>
          <delta_ts>2024-10-09 00:56:24 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>MathML</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/2010/REC-MathML3-20101021/chapter3.html#presm.scriptlevel</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>99620</dependson>
    
    <dependson>133845</dependson>
    
    <dependson>155542</dependson>
    
    <dependson>155638</dependson>
    
    <dependson>155639</dependson>
    
    <dependson>155714</dependson>
          <blocked>3251</blocked>
    
    <blocked>49309</blocked>
    
    <blocked>84019</blocked>
    
    <blocked>124907</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Frédéric Wang Nélar">fred.wang</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alex</cc>
    
    <cc>cfleizach</cc>
    
    <cc>mrobinson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>908925</commentid>
    <comment_count>0</comment_count>
      <attachid>206790</attachid>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2013-07-16 09:49:06 -0700</bug_when>
    <thetext>Created attachment 206790
testcase

&lt;math display=&quot;block&quot;&gt; and &lt;math display=&quot;inline&quot;&gt; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1209731</commentid>
    <comment_count>1</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2016-07-11 11:57:21 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>206790</attachid>
            <date>2013-07-16 09:49:06 -0700</date>
            <delta_ts>2013-07-16 09:49:06 -0700</delta_ts>
            <desc>testcase</desc>
            <filename>displaystyle-movablelimits.html</filename>
            <type>text/html</type>
            <size>1027</size>
            <attacher name="Frédéric Wang Nélar">fred.wang</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPHRpdGxlPnRlc3RjYXNlPC90aXRs
ZT4KICAgIDxtZXRhIGNoYXJzZXQ9InV0Zi04Ii8+CiAgPC9oZWFkPgogIDxib2R5PgoKICAgIDx0
YWJsZSBib3JkZXI9IjEiPgogICAgICA8d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