3 ms·
Before anyone wastes a lot of time like I did trying to use the popover API: it is not ready yet. You can do very basic things in all browsers but positioning i
by herpdyderp 10mo ago
Before anyone wastes a lot of time like I did trying to use the popover API: it is not ready yet. You can do very basic things in all browsers but positioning is still different and/or totally broken per browser.
- senfiaj 10mo agoYes, HTML & CSS alone won't replace JS. Of course, for complicated form validation HTML is not sufficient. But IMHO it's very important to provide basic functionality in HTML / CSS as much as possible / reasonable. Moving the functionality to HTML / CSS can potentially improve the SEO. As for positioning, there is an experimental feature @position-try. Here I made a small demo where it handles overflows. https://waspdev.com/articles/2025-06-29/css-features-web-developers-should-know-in-2025#handling_overflows_with_position_try_fallbacks https://waspdev.com/articles/2025-06-29/css-features-web-dev... But yeah, that's kind of limited if you need nice animations or some other complicated thing. Although it's fun.
- extra88 10mo agoYes, popover's uses are limited without CSS anchor positioning but it will be supported in all major browsers very soon. In the meantime, there is a polyfill to load in browsers without support. https://caniuse.com/css-anchor-positioning https://caniuse.com/css-anchor-positioning