DIFF.BLOG
New Following Discover Jobs
More
Top Writers Suggest a blog Upvotes plugin
Report bug Contact About
Sign up
Topics
Follow your own topics →
Menu
New Following Discover Jobs Top Writers
More
Suggest a blog Upvotes plugin Report bug Contact About
Sign up
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join Diff.blog
TOPICS

Can’t touch the DOM? Reach for :has() to style any element

35 · Thoughtbot · Aug. 17, 2026, 12:37 a.m.
CSS Web Development Styling Techniques Javascript
Summary
The blog post discusses how the CSS pseudo-selector :has() can empower developers to style elements in ways that third-party component libraries may restrict, without relying on JavaScript.
Read full post on feed.thoughtbot.com →
MORE POSTS LIKE THIS
What’s !important #17: Custom Highlight API, CSS Navigation Matching, Fixing text-stroke, and More
CSS-Tricks · Aug 14, 2026
articles News
How to Create Accessible Modals and Pop-ups Using HTML, CSS, and Minimal JavaScript
freeCodeCamp.org · Jul 18, 2026
anchor css popup
Web Weekly #196 (#blogPost)
Stefanjudis · Jul 13, 2026
blogPost newsletter
How I'm using CSS View Transitions on this blog
Max Glenister · Jul 7, 2026
Web Development CSS
Time-based background colour transitions with Temporal and CSS color-mix
Localghost · Jul 5, 2026
CSS Javascript
Links For You (7/5/26)
Raymond Camden · Jul 5, 2026
links4you Misc
Discover more posts →
AUTHOR
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub Continue with Google