WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
276414
Handling of negative margins in MathML
https://bugs.webkit.org/show_bug.cgi?id=276414
Summary
Handling of negative margins in MathML
Frédéric Wang (:fredw)
Reported
2024-07-10 02:26:48 PDT
It seems margin has been supported for mrow-like elements for a while and I've been doing that for other MathML elements in
bug 276169
's dependencies. MathML elements calculate their sizes from the coordinates/sizes of their children's margin boxes, which can lead to weird cases with negative margins. We should make sure these edge cases don't cause any wrong behavior laying MathML elements, probably clamping negative offsets to 0 when necessary.
Attachments
Add attachment
proposed patch, testcase, etc.
Frédéric Wang (:fredw)
Comment 1
2024-07-10 08:05:51 PDT
There are WPT crash tests for what I'm mentioning:
http://wpt.live/mathml/crashtests/children-with-negative-inline-sizes.html
http://wpt.live/mathml/crashtests/children-with-negative-block-sizes.html
and they don't seem to cause any crash/asserts, so maybe some explicit clamping is not necessary.
Radar WebKit Bug Importer
Comment 2
2024-07-17 02:27:15 PDT
<
rdar://problem/131909042
>
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