<?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>118604</bug_id>
          
          <creation_ts>2013-07-12 07:52:22 -0700</creation_ts>
          <short_desc>Bad alignment of formula when vertical-align is specified</short_desc>
          <delta_ts>2016-08-03 04:17:45 -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>DUPLICATE</resolution>
          <dup_id>90335</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Frédéric Wang Nélar">fred.wang</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>907964</commentid>
    <comment_count>0</comment_count>
      <attachid>206547</attachid>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2013-07-12 07:52:22 -0700</bug_when>
    <thetext>Created attachment 206547
testcase

Here is a testcase. &quot;blah&quot; should align with the base of the msubsup.

See bug 95015 for a related change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>908155</commentid>
    <comment_count>1</comment_count>
      <attachid>206600</attachid>
    <who name="alan">zalan</who>
    <bug_when>2013-07-13 03:32:55 -0700</bug_when>
    <thetext>Created attachment 206600
vertical aligns

WebKit rendering looks fine to me. The text is nicely aligned next to the &lt;math&gt; element. (see 2nd testcase)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>908156</commentid>
    <comment_count>2</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2013-07-13 03:40:45 -0700</bug_when>
    <thetext>Though FF renders it differently, but that&apos;s because they calculate the &lt;math&gt; element&apos;s height differently (they end up with a lot smaller box) which makes the vertical-align property almost non-relevant here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>908157</commentid>
    <comment_count>3</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2013-07-13 03:42:16 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; Created an attachment (id=206547) [details]
&gt; testcase
&gt; 
&gt; Here is a testcase. &quot;blah&quot; should align with the base of the msubsup.
&gt; 
&gt; See bug 95015 for a related change.

so I believe &apos;vertical-align: baseline&apos; should align with the base of the msubsup as opposed to &apos;bottom&apos; (unless I miss something here)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>908753</commentid>
    <comment_count>4</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2013-07-16 02:12:11 -0700</bug_when>
    <thetext>I was considering vertical align for table cells which is interpreted differently than for inline elements:

https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align

I think my comment on bug 95015 was misleading. I found the align bug while trying to write reftests for bug 95015, but that&apos;s probably unrelated since vertical-align is not inherited.

Actually, perhaps the bug is not related to MathML at all. Bug 90335 is a similar issue with HTML-only elements. I&apos;m guessing using a div as a workaround should work for the present bug too.

BTW, Gecko&apos;s height bug is: https://bugzilla.mozilla.org/show_bug.cgi?id=415413</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>908757</commentid>
    <comment_count>5</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2013-07-16 02:14:38 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; 
&gt; BTW, Gecko&apos;s height bug is: https://bugzilla.mozilla.org/show_bug.cgi?id=415413

Sorry it is https://bugzilla.mozilla.org/show_bug.cgi?id=219873</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1216879</commentid>
    <comment_count>6</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2016-08-03 04:17:45 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 90335 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>206547</attachid>
            <date>2013-07-12 07:52:22 -0700</date>
            <delta_ts>2013-07-12 07:52:22 -0700</delta_ts>
            <desc>testcase</desc>
            <filename>baseline.html</filename>
            <type>text/html</type>
            <size>552</size>
            <attacher name="Frédéric Wang Nélar">fred.wang</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPHRpdGxlPnRlc3RjYXNlPC90aXRs
ZT4KICAgIDxtZXRhIGNoYXJzZXQ9InV0Zi04Ii8+CiAgICA8c3R5bGU+CiAgICAgIHRkIHsKICAg
ICAgYm9yZGVyOiAxcHggc29saWQgYmxhY2s7CiAgICAgIHdpZHRoOiAyMDBweDsKICAgICAgaGVp
Z2h0OiAyMDBweDsKICAgICAgdGV4dC1hbGlnbjogY2VudGVyOwogICAgICB2ZXJ0aWNhbC1hbGln
bjogYm90dG9tOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvaGVhZD4KICA8Ym9keT4KCiAgICA8
dGFibGU+CiAgICAgIDx0cj4KCTx0ZD4KCSAgYmxhaCA8bWF0aD4KCSAgICA8bXN1YnN1cD4KCSAg
ICAgIDxtaT54PC9taT4KCSAgICAgIDxtZnJhYz4KCQk8bW4+MTwvbW4+CgkJPG1mcmFjPgoJCSAg
PG1uPjE8L21uPjxtbj4zPC9tbj4KCQk8L21mcmFjPgoJICAgICAgPC9tZnJhYz4KCSAgICAgIDxt
bj40PC9tbj4KCSAgICA8L21zdWJzdXA+CgkgIDwvbWF0aD4gYmxhaAoJPC90ZD4KICAgICAgPC90
cj4KICAgIDwvdGFibGU+CiAgICAKICA8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>206600</attachid>
            <date>2013-07-13 03:32:55 -0700</date>
            <delta_ts>2013-07-13 03:32:55 -0700</delta_ts>
            <desc>vertical aligns</desc>
            <filename>math_align.html</filename>
            <type>text/html</type>
            <size>1157</size>
            <attacher name="alan">zalan</attacher>
            
              <data encoding="base64">PGh0bWw+CiAgPGhlYWQ+CiAgICA8dGl0bGU+dGVzdGNhc2U8L3RpdGxlPgogICAgPHN0eWxlPgog
ICAgICBzcGFuIHsKICAgICAgICAgIGJvcmRlcjogMXB4IHNvbGlkIGJsdWU7CiAgICAgICAgICBm
b250LXNpemU6IDE1cHg7CiAgICAgIH0KCiAgICAgIG1hdGggewogICAgICAgICAgYm9yZGVyOiAx
cHggc29saWQgcmVkOwogICAgICAgICAgZm9udC1zaXplOiA0NXB4OwogICAgICB9CiAgICA8L3N0
eWxlPgogIDwvaGVhZD4KICA8Ym9keT4KCTxzcGFuIHN0eWxlPSd2ZXJ0aWNhbC1hbGlnbjogYmFz
ZWxpbmUnPgoJICB2ZXJ0aWNhbC1hbGlnbjogYmFzZWxpbmUmbmJzcCZuYnNwPG1hdGg+CgkgICAg
PG1zdWJzdXA+CgkgICAgICA8bWk+eDwvbWk+CgkgICAgICA8bWZyYWM+CgkJICAgIDxtbj4xPC9t
bj4KCQkgICAgPG1mcmFjPgoJCSAgICAgIDxtbj4xPC9tbj48bW4+MzwvbW4+CgkJICAgIDwvbWZy
YWM+CgkgICAgICA8L21mcmFjPgoJICAgICAgPG1uPjQ8L21uPgoJICAgIDwvbXN1YnN1cD4KCSAg
PC9tYXRoPgoJPC9zcGFuPiAgICAKICAgIDxicj4KICAgIDxicj4KCTxzcGFuIHN0eWxlPSd2ZXJ0
aWNhbC1hbGlnbjogYm90dG9tJz4KCSAgdmVydGljYWwtYWxpZ246I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