Post

💡 CSS Tip! Do you want to detect the overflow of an element? Does it have a scrollbar or not? It's possible with only CSS (No JavaScript!) You can even style any element on the page using this information 🤩 Code & demo 👉 css-tip.com/overflow-det... ⚠️ Chrome only for now ⚠️ #CSS

I was sure I have seen a similar article in your blog but I stopped searching when I reached "CSS wrapped 2023" 😅

0 reposts1 like

"A downside of this approach is that is that you can only style child elements of the container". At least I am adding the case where you can style any element on the page which is a game changer 😄 (it was probably not possible one year ago)

Yes, clever of you to hoist use `timeline-scope` to hoist up its reach – hadn’t thought of that!