Bug 314084

Summary: Bad metrics calculated for annotation/annotation-xml elements with padding
Product: WebKit Reporter: Frédéric Wang Nélar <fred.wang>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: eri
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 195797, 314085    
Attachments:
Description Flags
testcase none

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
Note You need to log in before you can comment on or make changes to this bug.