[Webkit-unassigned] [Bug 118738] New: Improve how the script size is determined

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 16 10:03:04 PDT 2013


           Summary: Improve how the script size is determined
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://www.w3.org/TR/2010/REC-MathML3-20101021/chapter
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: MathML
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: fred.wang at free.fr

Currently the script size is determined by the following CSS rule in WebCore/css/mathml.css:

msub > * + *, msup > * + *, msubsup > * + *, munder > * + *, mover > * + *, munderover > * + * {
    font-size: 0.75em; /* FIXME: MathML standard is 0.71em */

The MathML specification describes a more complicated way to compute that size using the scriptlevel, scriptminsize and  scriptsizemultiplier attributes. In Gecko these are implemented in the text rendering using private -moz-* CSS properties and then these properties are set by the MathML code. Some elements like scripts, fractions or roots increment the scriptlevel (the exact rules rely on the displaystyle value, see bug 118737).

See also bucket 3 of the MathML Acid3 tests:

and chapter 3 of the MathML spec for details:

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