WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
181158
Horizontal margins are not collapsed for children of <mrow>
https://bugs.webkit.org/show_bug.cgi?id=181158
Summary
Horizontal margins are not collapsed for children of <mrow>
Minsheng Liu
Reported
2017-12-26 02:58:47 PST
Created
attachment 330190
[details]
Horizontal margins are not collapsed for children of <mrow> See the attachment for an example. The reason comes to the following code: RenderMathMLRow::layoutRowItems for (auto* child = firstChildBox(); child; child = child->nextSiblingBox()) { // ... horizontalOffset += child->marginStart(); // ... horizontalOffset += childWidth + child->marginEnd(); } RenderMathMLRow::getContentBoundingBox for (auto* child = firstChildBox(); child; child = child->nextSiblingBox()) { // ... width += child->marginStart() + child->logicalWidth() + child->marginEnd(); // ... } I think we should really ignores margin/padding/border for MathML elements. It appears that Firefox does that.
Attachments
Horizontal margins are not collapsed for children of <mrow>
(230 bytes, text/html)
2017-12-26 02:58 PST
,
Minsheng Liu
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Minsheng Liu
Comment 1
2018-01-13 10:35:34 PST
I did not realize that margin collapsing only happens for margin-top and margin-bottom.
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