<?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>170229</bug_id>
          
          <creation_ts>2017-03-28 22:19:17 -0700</creation_ts>
          <short_desc>MathML: layout is unstable on page zoom</short_desc>
          <delta_ts>2018-01-13 04:17:43 -0800</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>WebKit Nightly Build</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.12</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>161126</dependson>
    
    <dependson>180029</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Minsheng Liu">lambda</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alex</cc>
    
    <cc>fred.wang</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>rego</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1292303</commentid>
    <comment_count>0</comment_count>
      <attachid>305707</attachid>
    <who name="Minsheng Liu">lambda</who>
    <bug_when>2017-03-28 22:19:17 -0700</bug_when>
    <thetext>Created attachment 305707
An example involving stretchy operator.

In the given attachment, if one scales the webpage (via Command + or trackpad), then scales it back (via Command 0, or just press refresh), the layout of the equation changes. Scaling a page and scaling back should not change rendering results in any event. I am not familiar with WebKit’s structure; hopefully this bug does not imply some deep semantics issue around scaling in general and is specific to MathML only.

The issue exists in Safari 10, TP, and nightly builds. Changing font from default old STIX one shipped with Mac to STIX two does not help.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1292742</commentid>
    <comment_count>1</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2017-03-30 01:00:23 -0700</bug_when>
    <thetext>Thanks for the report. IIUC, this happens with stretchy operators (parenthesis here)? Maybe we can narrow down the report and reduce the test case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1293180</commentid>
    <comment_count>2</comment_count>
      <attachid>305974</attachid>
    <who name="Minsheng Liu">lambda</who>
    <bug_when>2017-03-31 09:35:11 -0700</bug_when>
    <thetext>Created attachment 305974
Minimal unstable example

This examples involves only a stretchy operator (an triple integral symbol) and a identifier &apos;x&apos;. It is also unstable on page zoom.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1293614</commentid>
    <comment_count>3</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2017-04-03 02:08:46 -0700</bug_when>
    <thetext>Thanks for the reduced test case. I guess the code involved is the same as in bug 170272, so you should be able to debug and narrow down the issues?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1374861</commentid>
    <comment_count>4</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2017-11-27 01:22:52 -0800</bug_when>
    <thetext>@Minsheng Were you able to work on this? Maybe you could start with bug 180029, which is somewhat simple to test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1374982</commentid>
    <comment_count>5</comment_count>
    <who name="Minsheng Liu">lambda</who>
    <bug_when>2017-11-27 10:11:35 -0800</bug_when>
    <thetext>I am interested, but I might have only ten hours or less every week—still a full time student and the final week is approaching. I will take a serious look after we finish the stretchy case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1389109</commentid>
    <comment_count>6</comment_count>
    <who name="Minsheng Liu">lambda</who>
    <bug_when>2018-01-13 04:17:43 -0800</bug_when>
    <thetext>It appears that the issue is gone, but I am not sure which patch resolves it. I suspect it is @fred’s previous refactoring of RenderMathMLRow which eliminates some dirty states. I plan to add a test as a part of my new proposal of combining the layout code for RenderMathMLRow, RenderMathMLEnclose, and RenderMathMLRoot.

In any event, note that in the first example, the parentheses are a bit off. Something seems wrong with the vertical stretching.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>305707</attachid>
            <date>2017-03-28 22:19:17 -0700</date>
            <delta_ts>2017-03-28 22:19:17 -0700</delta_ts>
            <desc>An example involving stretchy operator.</desc>
            <filename>int.html</filename>
            <type>text/html</type>
            <size>720</size>
            <attacher name="Minsheng Liu">lambda</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPG1ldGEgY2hhcnNldD0idXRmLTgi
PgogIDwvaGVhZD4KICA8Ym9keT4KICAgIDxwPlByZXNzIENvbW1hbmQgKyB0byBjaGFuZ2UgdGhl
IHNjYWxlLCB0aGVuIHByZXNzIENvbW1hbmQgMCB0byByZXZlcnQKICAgIHRvIHRoZSBkZWZhdWx0
IHNjYWxlLiBQb3NpdGlvbiBvZiB4IHdvdWxkIGJlIGRpZmZlcmVudCBmcm9tIHdoYXQgaXQgd2Fz
LgogICAgUmVmcmVzaCB0aGUgcGFnZSB0byBub3RlIHRoZSBkaWZmZXJlbmNlLjwvcD4KICAgIDxt
YXRoIGRpc3BsYXk9ImJsb2NrIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OC9NYXRoL01h
dGhNTCI+CiAgICAgIDxtcm93PgogICAgICAgIDxtc3Vic3VwPgogICAgICAgICAgPG1vPuKIrTwv
bW8+CiAgICAgICAgICA8bW4+MDwvbW4+CiAgICAgICAgICA8bW4+MTwvbW4+CiAgICAgICAgPC9t
c3Vic3VwPgogICAgICAgIDxtaT5mPC9taT4KICAgICAgICA8bXJvdz4KICAgICAgICAgIDxtbyBz
dHJldGNoeT0idHJ1ZSIgZm9ybT0icHJlZml4Ij4oPC9tbz4KICAgICAgICAgIDxtaT54PC9taT4K
ICAgICAgICAgIDxtbyBzdHJldGNoeT0idHJ1ZSIgZm9ybT0icG9zdGZpeCI+KTwvbW8+CiAgICAg
ICAgPC9tcm93PgogICAgICAgIDxtaT5kPC9taT4KICAgICAgICA8bWk+eDwvbWk+CiAgICAgIDwv
bXJvdz4KICAgIDwvbWF0aD4KICA8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>305974</attachid>
            <date>2017-03-31 09:35:11 -0700</date>
            <delta_ts>2017-03-31 09:35:11 -0700</delta_ts>
            <desc>Minimal unstable example</desc>
            <filename>int2.html</filename>
            <type>text/html</type>
            <size>247</size>
            <attacher name="Minsheng Liu">lambda</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPG1ldGEgY2hhcnNldD0idXRmLTgi
PgogIDwvaGVhZD4KICA8Ym9keT4KICAgIDxtYXRoIGRpc3BsYXk9ImJsb2NrIiB4bWxucz0iaHR0
cDovL3d3dy53My5vcmcvMTk5OC9NYXRoL01hdGhNTCI+CiAgICAgIDxtcm93PgogICAgICAgIDxt
byBzdHJldGNoeT0idHJ1ZSI+4oitPC9tbz4KICAgICAgICA8bWk+eDwvbWk+CiAgICA8L21hdGg+
CiAgPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>