WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
314084
Bad metrics calculated for annotation/annotation-xml elements with padding
https://bugs.webkit.org/show_bug.cgi?id=314084
Summary
Bad metrics calculated for annotation/annotation-xml elements with padding
Frédéric Wang Nélar
Reported
2026-05-05 06:50:24 PDT
Created
attachment 479476
[details]
testcase Testcase: <!DOCTYPE html> <meta charset="utf-8"/> <style> annotation-xml, annotation, mrow { font-family: math; display: initial; padding: 50px; border: 1px solid red; background: lightblue; opacity: .8; } </style> <p>Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello</p> <math> <semantics> <mtext></mtext><annotation>annotation</annotation> </semantics> </math> <math> <semantics> <mtext></mtext><annotation-xml encoding="text/html"><span>annotation-xml</span></annotation-xml> </semantics> </math> <p>World World World World World World World World World World World World</p> The annotation and annotation-xml boxes overlap with the "Hello World" text around. Note that the rendering is quite broken. If you remove `opacity: .8` nothing is shown. Also the annotation and annotation-xml text is not visible because of
bug 314081
.
Attachments
testcase
(647 bytes, text/html)
2026-05-05 06:50 PDT
,
Frédéric Wang Nélar
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
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