WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 49309
118738
Improve how the script size is determined
https://bugs.webkit.org/show_bug.cgi?id=118738
Summary
Improve how the script size is determined
Frédéric Wang (:fredw)
Reported
2013-07-16 10:03:11 PDT
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:
http://fred-wang.github.io/AcidTestsMathML/acid3/d
http://fred-wang.github.io/AcidTestsMathML/acid3/description.html
and chapter 3 of the MathML spec for details:
http://www.w3.org/TR/2010/REC-MathML3-20101021/chapter3.html
Attachments
testcase
(361 bytes, text/html)
2013-07-16 10:24 PDT
,
Frédéric Wang (:fredw)
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Frédéric Wang (:fredw)
Comment 1
2013-07-16 10:24:56 PDT
Created
attachment 206795
[details]
testcase Here is a testcase. The scriptsizemultiplier is .5, mroot increments the scriptlevel of its script by 2 and there is no scriptminsize constraint (set to 0). So the size of "SCRIPT" should be 0.5 ^ 2 = 25%, which is the size of "REFERENCE".
Frédéric Wang (:fredw)
Comment 2
2024-10-09 00:57:32 PDT
We should follow MathML Core. marking as duplicate of
bug 49309
*** This bug has been marked as a duplicate of
bug 49309
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug