Comments on: The Power of :has() in CSS https://css-tricks.com/the-power-of-has-in-css/ Tips, Tricks, and Techniques on using Cascading Style Sheets. Wed, 03 Apr 2024 17:18:23 +0000 hourly 1 https://wordpress.org/?v=6.4.3 By: Chris L https://css-tricks.com/the-power-of-has-in-css/#comment-1808253 Wed, 03 Apr 2024 17:18:23 +0000 https://css-tricks.com/?p=377635#comment-1808253 :has lets us have :focus-visible-within also, even though its not a thing.

:has(*:focus-visible)

]]>
By: Chris Zuber https://css-tricks.com/the-power-of-has-in-css/#comment-1808229 Sun, 31 Mar 2024 19:07:17 +0000 https://css-tricks.com/?p=377635#comment-1808229 Glad to see content on here again! Looks to be fairly active too.

Yep, :has() is pretty useful. And I see quite a few clever uses of it too… It’s not just a parent selector as many call it.

Also, I’ve found :is() to be useful in writing styles for a polyfill for the Popover API. Using it reduces the specificity, making any other CSS rules override what I’m giving that’s basically fulfilling the role of browser styles.

]]>
By: Oyebode Daniel https://css-tricks.com/the-power-of-has-in-css/#comment-1808226 Sat, 30 Mar 2024 14:40:54 +0000 https://css-tricks.com/?p=377635#comment-1808226 Awesome

]]>