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

Does :has function as a parent selector? That's probably the only thing I ever really wanted from CSS and I assumed it would never happen because of the (back propagating) implications for the order the DOM is rendered in.


Yes, because that was truly a gap in waht could be selected.

Here is a blog post outlining what can be done using :has https://webkit.org/blog/13096/css-has-pseudo-class/




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

Search: