News for hackers. Stuff that matters.
Re:Using <details> for menus and dialogs (2019) by inopinatus on Saturday April 24, 2021 @07:05PM (#26928964)
It’s even better than that, stylistically speaking. It’s the first element whose default styling, irrespective of the parent node, is naturally centred both vertically and horizontally with height and width constrained to content size (this alone being one of the CSS holy grails), but also explicitly sidestepping z-index issues even for elements within a nested stack context. All things a polyfill cannot do without caveats.

There are no comments on this comment yet.