CSS: Glide supports the :has() pseudo class!

For those that like to use custom css, I found that you can target the parent of a child element by using the :has ( > ___ ) pseudo class.

I’ve been wanting to do this for years and it seems like its now supported by many browsers. @ThinhDinh has confirmed that it works on mobile too!

8 Likes

Yes, there are many advantages that can be achieved with :has(), including criteria for its hierarchy as well.

Additionally, you can use [src="imgUrl"] as a selector, for example, if you want to hide a specific row.

1 Like

Thanks to @Himaladin my app has been laced with “:has()” for quite a while now :grin:

1 Like

Ya @Himaladin is a CSS beast! :nail_care:

4 Likes

I learned :has() from him!

Funny, because I was actually introduced to CSS by you! Such an inspiration!

1 Like