News for hackers. Stuff that matters.
Re:<dialog>: The Dialog Element by tredre3 on Friday December 06, 2024 @03:36PM (#42344129)
> Modals that blocks focus to an entire browser window aren't really a good idea (I'm of the opinion that they are almost always a shitty idea, but that's harder to argue).

Good news then, because alert/prompt/confirm do not block the window in any modern browser!

In Firefox it only blocks the viewport of the current tab, so it behaves exactly like a DIY modal. In Chromium browsers it does pop over part of the browser UI, but it still doesn't block the window; You interact with the tab bar, address bar, menu, etc.

Re:<dialog>: The Dialog Element by DaiPlusPlus on Friday December 06, 2024 @05:28PM (#42345248)
> because alert/prompt/confirm do not block the window in any modern browser!

Correct: they don't block the browser's desktop UI thread - but they do block the web-page's thread - and for abvout the past decade we can't move alert/prompt/confirm prompts: Chrome forces them to appear at the very top, dead-centre, and you can't scroll the page while it's open.

Re:<dialog>: The Dialog Element by saagarjha on Saturday December 07, 2024 @11:06PM (#42354952)
I mean that's how alerts work on almost every other platform