Bug 279512

Summary: Popover API: A popover flows off the screen
Product: WebKit Reporter: Rogier de Ruijter <imbashenk>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: koivisto
Priority: P2    
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Rogier de Ruijter
Reported 2024-09-11 06:25:10 PDT
When using the popover API, a popover flows off the screen when the text gets too long for the top layer. On Chrome, this doesn't happen, and the text is wrapped. Reproduction: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Overflow popover</title> <meta name="viewport" content="width=device-width,initial-scale=1" /> </head> <body> <div popover> This is a popover that will overflow the viewport. On Safari but not on Chrome. </div> </body> <style> [popover] { left: 90%; } </style> <script> this.popover = document.querySelector("[popover]"); this.popover.showPopover(); </script> </html>
Attachments
Rogier de Ruijter
Comment 1 2024-09-11 06:27:07 PDT
*** This bug has been marked as a duplicate of bug 279510 ***
Note You need to log in before you can comment on or make changes to this bug.