#1909·stylex

Support boolean evaluation for media features like `@media (prefers-reduced-motion)`

Author: chbybnwrCreated Sep 26, 2026Updated Sep 28, 2026
Labelsenhancement

Describe the feature request

When using the boolean evaluation form of the media query @media (prefers-reduced-motion), StyleX throws an Invalid media query syntax error on build.

According to the W3C Media Queries Level 4/5 specification, media features can be evaluated in a boolean context. Therefore, @media (prefers-reduced-motion) is valid CSS.

The compiler should accept boolean evaluation for media features like @media (prefers-reduced-motion) without requiring the explicit reduce value.