Day 8: nesting :has()

from blog Manuel Matuzović - Blog, | ↗ original
↗ original
The :has() pseudo-class cannot be nested; :has() is not valid within :has(). I have a red and blue border in supporting browsers. /* valid */ div:has(p) { border: 4px solid red; } /* valid */ p:has(strong) { border: 4px solid blue; } /* invalid */ div:has(p:has(strong)) { border: 4px solid green; } .div:has(p) { border: 4px...