css-has-pseudo is a PostCSS plugin enabling the :has() CSS pseudo-class selector. This allows you to style elements based on their children, achieving parent-child relationships in CSS selectors where traditionally only child-parent relationships were possible. The plugin transforms :has() into standard CSS selectors supported by browsers lacking native support, offering a progressive enhancement approach to modern CSS features. Perfect for creating more dynamic and adaptable stylesheets.
The css-has-pseudo npm package was actively released from late 2018 to early 2023, with several versions in 2024. Releases were frequent in the initial months, followed by periods of inactivity. Version 7 was released the latest in August 2024, and no releases have occurred from September 2024 to September 2025.
From March 2024 to September 2025, the npm package css-has-pseudo saw consistent download numbers, generally staying above 20 million. A peak in downloads occurred in June 2025, exceeding 30 million. September 2025 downloads are significantly lower, reflecting incomplete monthly data.