This is a big day for CSS. After 25 years of devs being told that CSS cannot have parent selectors because they’re too slow, Safari TP 137 not only implements :has(), but enables it by default.
And AFAIK @igalia is working on a Chrome implementation!
https://t.co/sIJxTbAH86
JavaScript quiz, what is:
Math.tan(Math.PI/2) + 1 - Math.tan(Math.PI/2)
The answer, of course, is 2.
Bonus round: what if you change that 1 to a 3?
The answer is still 2.