3 ms·
The Dialog Element
- Turing_Machine 5y agoLooks like it's working fine in the latest TP. It's sweet that it's stylable with CSS, so you don't get glaringly-out-of-place dialog boxes.
- pseudoramble 5y agoIt looks nice. The only kind of odd looking thing to me is the returnValue state in the dialog itself. Seems like this should be part of Ash event object instead? Although I guess the problem is which event to tie it to. Either way, pretty cool sounding.
- imbnwa 5y agoNow just need Firefox to come around
- Turing_Machine 5y agoFirefox already has it, albeit behind a config setting at the moment. If you set dom.dialog_element.enabled to true in about:config you'll get it. It's still behind a flag setting in Chrome and Opera, too. https://caniuse.com/dialog https://caniuse.com/dialog Hopefully it will be rolled out to standard production in all major browsers soon.
- imbnwa 5y agoIts not behind a flag in Chrome as I've used it in Chrome as well as the caniuse table agrees.
- Turing_Machine 5y agoYou're right, of course. I was misinterpreting the footnote at the bottom. It says it's fully functional without config settings in Firefox 98, too, although it looks like the max Firefox version I can get for the Mac through the normal update process is 97. So... soon, apparently.