[Webkit-unassigned] [Bug 79274] Fix <msubsup> formatting

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 23 00:05:16 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=79274





--- Comment #5 from Frédéric Wang <fred.wang at free.fr>  2012-02-23 00:05:16 PST ---
In general, the MathML REC is intentionally pretty vague about the rendering of elements, so user agents have to use their own heuristic rules...

http://www.w3.org/TR/MathML3/chapter3.html#presm.msubsup

In Mozilla, we take into account subscriptshift/superscriptshift to position scripts vertically (don't know if it is implemented in Webkit). For all the rest, we use TeX rules. They may be quite complicated and involve properties of the frames such as MathML displaystyle or TeX compressed (with the mechanism to transmit private data that I talked about last time):

http://mxr.mozilla.org/mozilla-central/source/layout/mathml/nsMathMLmsubsupFrame.cpp#130

(another option is to use information from the Math table of Open Type fonts, but this is much more work)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list