Bug 85730 - (mpadded) Add support for mpadded element
: Add support for mpadded element
Status: NEW
Product: WebKit
Classification: Unclassified
Component: MathML
: 528+ (Nightly build)
: All All
: P2 Normal
Assigned To: Frédéric Wang (:fredw)
Depends on: 155792
Blocks: 3251 mathml-in-mathjax 115583
  Show dependency treegraph
Reported: 2012-05-06 07:39 PDT by Frédéric Wang (:fredw)
Modified: 2016-08-24 07:00 PDT (History)
1 user (show)

See Also:

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:
Comment 1 Frédéric Wang (:fredw) 2016-03-14 07:28:51 PDT
Created attachment 273971 [details]

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]

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"