CSS style queries now support range syntax with comparison operators (>, <, >=, <=) as of Chrome 142, similar to media and container queries. This enhancement allows developers to query custom properties based on ranges rather than exact values, enabling more flexible responsive components. The feature works with @container

3m read timeFrom una.im
Post cover image
Table of contents
Range Syntax for Style QueriesDemo: Weather cardsUsing Range Syntax with if()Demo: Grid position

Sort: