Day 36: :has() and pseudo-elements

from blog Manuel Matuzović - Blog, | ↗ original
↗ original
We already know that we can select an element based on the presence of a certain child element (in Chrome/Edge 105+ and Safari 15.4+), but there are limitations. World! p:has(strong) { background-color: aqua; } .p:has(strong) { background-color: aqua; } .p2::before, .p3::before{ content: "Hello"; } .p3:has(:hover) { ...