:has is an unforgiving selector

A little thing happened on the way to publishing the CSS :has() selector to the ol’ Almanac. I had originally described :has() as a “forgiving” selector, the idea being that anything in its argument is evaluated, even if one or …


:has is an unforgiving selector originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.

https://css-tricks.com/has-is-an-unforgiving-selector/

Creată 2y | 11 ian. 2023, 14:20:41


Autentifică-te pentru a adăuga comentarii

Alte posturi din acest grup

A Few Ways That Cloudways Makes Running This Site a Little Easier

(This is a sponsored post.)

It’s probably no surprise to you that CSS-Tricks is (proudly) hosted on

14 ian. 2025, 15:50:06 | CSS tricks
How to Wait for the sibling-count() and sibling-index() Functions

Today, I want to look into one of those cases of impatient and how the community has waited for that feature, to be specific, two upcoming functions: sibling-count() and sibling-index().


13 ian. 2025, 16:40:05 | CSS tricks
The Importance of Investing in Soft Skills in the Age of AI

I am still an AI skeptic. The biggest risk I foresee is that if your sole responsibility is to write code, your job is at risk. It’s not time to panic, but I do see a lot of value in evolving your

6 ian. 2025, 15:30:04 | CSS tricks
Thank You (2024 Edition)

I'm more thankful this time around because, last year, I didn't even get to write this post. But now that I'm back, writing this feels so, so, so good. There's a lot more gusto going into my writin

30 dec. 2024, 16:20:19 | CSS tricks
A CSS Wishlist for 2025

2024 has been one of the greatest years for CSS: cross-document view transitions,

23 dec. 2024, 15:10:04 | CSS tricks
The Little Triangle in the Tooltip

Today, I want to focus on what I'll call the little triangle in the tooltip. It receives minimal attention but it amazes you by how many ways there are to make them. Let's start with the simplest a

20 dec. 2024, 17:30:19 | CSS tricks