Get the latest tech news
A couple CSS tricks for HTML Dialog elements
You can use CSS to add some simple functionality to HTML <dialog> elements!
If you want to see a decent quick example of them in action, you can check out my game Jumblie and click the Settings gear button at the top. There’s a couple tricks that you might find handy when you’re implementing your own<dialog> s on your websites! This selector checks to see if the<body> has a<dialog> with the open attribute.
Or read this on Hacker News