Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Very cool. So if I understand correctly, this doesn’t really introduce any new capability, it just streamlines the need to have a modal div, mask div, container div, and some uncomfortable positioning CSS? It also adds some pseudo classes to simplify styling. I like it.


It also allows for the basic functionality without JS (and without overloading a hidden checkbox). I'm not sure how far that will get you so maybe JS will be needed for a styled and animated popover, but no-JS support with focus handled properly is nice.

I want to say there was also accessibility support built in but now I don't see it in the spec. If it handles announcing the elements to accessibility tools like a screen reader that'll really help too, its pretty easy to forget to do it manually.


The API it introduces also allows the control of popover elements’ visible state in the DOM without any javascript.

That is definitely useful.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: