CSS :has() selector is a parent selector
The :has() pseudo-class lets you style a parent based on its children. For example, div:has(> img) selects any div that directly contains an img. No more JavaScript hacks for parent selection!
The :has() pseudo-class lets you style a parent based on its children. For example, div:has(> img) selects any div that directly contains an img. No more JavaScript hacks for parent selection!
Ray
26 • Kuala Lumpur, 🇲🇾 • profiter du moment
your friendly neighbourhood
Frontend Engineer
May 2024 – Present
Software Engineer
Feb 2022 – May 2024