New blog post: “Named Container Presence Check”

blog.kizu.dev/named-container-

I was doing some recently, and I wanted to know if my element was inside a certain container.

While I could reuse the same selector that I used to apply the container with, this did not feel right: what if I were to apply the same container via a different selector? Or have a version of that element where the container is removed via some modifier?

Can we somehow use just the container’s name for this?

0

If you have a fediverse account, you can quote this note from your own instance. Search https://front-end.social/users/kizu/statuses/115533026440139284 on your instance and quote it. (Note that quoting is not supported in Mastodon.)