Bug 85730 (mpadded)

Summary: Add support for mpadded element
Product: WebKit Reporter: Frédéric Wang (:fredw) <fred.wang>
Component: MathMLAssignee: Frédéric Wang (:fredw) <fred.wang>
Status: NEW ---    
Severity: Normal CC: fred.wang
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://www.w3.org/TR/MathML/chapter3.html#presm.mpadded
See Also: https://bugs.webkit.org/show_bug.cgi?id=180013
Bug Depends on: 155792    
Bug Blocks: 3251, 115583, 84019    
Attachments:
Description Flags
Patch none

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"