New blog post: “Named Container Presence Check”
https://blog.kizu.dev/named-container-presence-check/
I was doing some #CSS 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?
Named Container Presence Check
I was doing some styling recently, and I wanted to know if my element is 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 would 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?
blog.kizu.dev
Link author:
Roma Komarov@kizu@front-end.social