Bug 85730 (mpadded) - Add support for mpadded element
Summary: Add support for mpadded element
Status: NEW
Alias: mpadded
Product: WebKit
Classification: Unclassified
Component: MathML (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Frédéric Wang (:fredw)
URL: http://www.w3.org/TR/MathML/chapter3....
Keywords:
Depends on: 155792
Blocks: 3251 115583 mathml-in-mathjax
  Show dependency treegraph
 
Reported: 2012-05-06 07:39 PDT by Frédéric Wang (:fredw)
Modified: 2017-11-25 07:13 PST (History)
1 user (show)

See Also:


Attachments
Patch (24.99 KB, patch)
2016-03-14 07:28 PDT, Frédéric Wang (:fredw)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frédéric Wang (:fredw) 2012-05-06 07:39:10 PDT
"An mpadded element renders the same as its child content, but with the size of the child's bounding box and the relative positioning point of its content modified according to mpadded's attributes."

MathJax uses mpadded to implement many LaTeX commands.

Some reftests:
http://devel.mathjax.org/testing/testsuite/MathMLToDisplay/Presentation/GeneralLayout/mpadded/
Comment 1 Frédéric Wang (:fredw) 2016-03-14 07:28:51 PDT
Created attachment 273971 [details]
Patch

A first patch without the expectations.
Comment 2 Frédéric Wang (:fredw) 2016-03-23 02:58:54 PDT
Comment on attachment 273971 [details]
Patch

This patch was intended for bug 155435.
Comment 3 Frédéric Wang (:fredw) 2016-07-12 21:14:57 PDT
Basic support was added in bug 155792. Currently, we do not implement:

- pseudo-unit such as width="3width"
- negative lspace like lspace="-4px"