WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
276358
margin and preferred width calculation for MathML elements
https://bugs.webkit.org/show_bug.cgi?id=276358
Summary
margin and preferred width calculation for MathML elements
Frédéric Wang (:fredw)
Reported
2024-07-09 00:07:14 PDT
Many "preferred width" tests are failing for margin-002/margin-003 (from imported/w3c/web-platform-tests/mathml/relations/css-styling/padding-border-margin/), even if the block size, inline size and coordinates are correct. I guess the problem is that the margins are not set when computePreferredLogicalWidths() (for layoutBlock() this is done by recomputeLogicalWidth() IIUC). Need to debug a bit what's happening here.
Attachments
Add attachment
proposed patch, testcase, etc.
Frédéric Wang (:fredw)
Comment 1
2024-07-09 00:25:52 PDT
This is likely the reason why LayoutTests/imported/w3c/web-platform-tests/mathml/relations/css-styling/padding-border-margin/padding-border-margin-001.html is failing too, the size and rendering of the `<mrow>` and `<math>` elements are correct and the block size of the `<div>` container is good. However, the inline margins don't seem to taken into account for the inline size of the `<div>`.
Frédéric Wang (:fredw)
Comment 2
2024-07-09 07:28:07 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/30604
Ahmad Saleem
Comment 3
2024-07-10 01:20:52 PDT
@Alan - from
Comment 1
- is it using IFC as well for MathML?
EWS
Comment 4
2024-07-10 01:40:17 PDT
Committed
280810@main
(9a8589b0774a): <
https://commits.webkit.org/280810@main
> Reviewed commits have been landed. Closing PR #30604 and removing active labels.
Radar WebKit Bug Importer
Comment 5
2024-07-10 01:41:16 PDT
<
rdar://problem/131447182
>
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