RESOLVED DUPLICATE of bug 279510279512
Popover API: A popover flows off the screen
https://bugs.webkit.org/show_bug.cgi?id=279512
Summary Popover API: A popover flows off the screen
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.