News for hackers. Stuff that matters.
Re:State of CSS by dmitriid on Friday October 21, 2022 @10:36AM (#33288409)
Make no mistake: dialog element is there only because browsers (and Chrome, first and formost) want to remove alert/prompt.

dialog was so problematic that the same people that are now promoting it were in favor of removing it entirely. Literally none of the issues were solved, but now it's a great new element that we all should use.

Re:State of CSS by laundermaf on Friday October 21, 2022 @02:40PM (#33291551)
Dialog is fine, but what I’m most excited is the upcoming Popup API. The finest part is that “the most recent popup gets the top-most layer”. You never have to fight z-index again because popups now live in a compositing layer outside the document itself (even though they’re still part of it), akin to position:fixed but without the conflicts.