Bug 118604 - Bad alignment of formula when vertical-align is specified
Summary: Bad alignment of formula when vertical-align is specified
Status: RESOLVED DUPLICATE of bug 90335
Alias: None
Product: WebKit
Classification: Unclassified
Component: MathML (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-12 07:52 PDT by Frédéric Wang (:fredw)
Modified: 2016-08-03 04:17 PDT (History)
1 user (show)

See Also:


Attachments
testcase (552 bytes, text/html)
2013-07-12 07:52 PDT, Frédéric Wang (:fredw)
no flags Details
vertical aligns (1.13 KB, text/html)
2013-07-13 03:32 PDT, zalan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frédéric Wang (:fredw) 2013-07-12 07:52:22 PDT
Created attachment 206547 [details]
testcase

Here is a testcase. "blah" should align with the base of the msubsup.

See bug 95015 for a related change.
Comment 1 zalan 2013-07-13 03:32:55 PDT
Created attachment 206600 [details]
vertical aligns

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

so I believe 'vertical-align: baseline' should align with the base of the msubsup as opposed to 'bottom' (unless I miss something here)
Comment 4 Frédéric Wang (:fredw) 2013-07-16 02:12:11 PDT
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'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'm guessing using a div as a workaround should work for the present bug too.

BTW, Gecko's height bug is: https://bugzilla.mozilla.org/show_bug.cgi?id=415413
Comment 5 Frédéric Wang (:fredw) 2013-07-16 02:14:38 PDT
(In reply to comment #4)
> 
> BTW, Gecko'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
Comment 6 Frédéric Wang (:fredw) 2016-08-03 04:17:45 PDT

*** This bug has been marked as a duplicate of bug 90335 ***