Ask any question about CSS here... and get an instant response.
Why isn't my @supports query applying styles in older browsers that don't support the feature? Pending Review
Asked on Dec 10, 2025
Answer
The `@supports` rule is used to apply styles only if a browser supports a specific CSS feature. However, older browsers that don't recognize the `@supports` rule will ignore it entirely, which means they won't apply the styles inside it.
Example Concept: The `@supports` rule allows you to write conditional CSS based on feature support. If a browser doesn't support `@supports`, it will skip the entire block. To ensure styles are applied in older browsers, you should provide a fallback style outside the `@supports` block, which will be used if the feature isn't supported.
Additional Comment:
- Place fallback styles outside the `@supports` block to ensure they are applied in all browsers.
- Use `@supports` to enhance styles for browsers that support the feature, not as a sole styling method.
- Consider using feature detection libraries like Modernizr for more complex scenarios.
Recommended Links:
