The light-level media feature was a proposed query for ambient light around the device: dim, normal, or washed.
The goal was to adapt contrast for dark rooms or bright sunlight. It was never implemented in browsers and was removed from Media Queries Level 5 as redundant with prefers-contrast and prefers-color-scheme. Study the syntax for history exams — do not ship it for production UI.
Removed Never implemented
MDN deleted the reference page. CSSWG removed the feature from the spec. @media (light-level: …) will not match in current browsers.
This sample responds to real theme/contrast preferences when supported.
How It Works
Skip light-level. It will never match.
Theme with prefers-color-scheme. Light/dark user preference.
Boost contrast with prefers-contrast. When users ask for more contrast.
Keep defaults solid. Ambient-light sensors are not required.
Edge Cases & Pitfalls
Treat this feature as exam trivia, not a shipping API.
removed
Gone from the spec
Media Queries Level 5 dropped light-level. Old drafts and mirrors are not a green light to use it.
engines
Zero browser support
Chrome, Firefox, Safari, and Edge never shipped it. Queries silently fail to match.
dead code
Do not leave it in production CSS
It adds weight and false confidence. Prefer working prefers-* features.
vs dark
Not a dark-mode switch
Ambient light ≠ theme preference. Use prefers-color-scheme for light/dark UI.
privacy
Sensors were a concern
Ambient-light based styling raised privacy/fingerprinting questions — another reason preference media features won.
Compatibility
Browser Support
light-level was specified as a browser media feature, but no engine shipped it. Node.js, Deno, and Bun do not evaluate it either.
✓ Removed · No support
light-level
Never implemented. Removed from Media Queries Level 5. MDN deleted the reference page. Do not use in production.
0%Engine support
Google Chrome—
No support
Mozilla Firefox—
No support
Apple Safari—
No support
Microsoft Edge—
No support
Opera—
No support
Samsung Internet—
No support
Internet Explorer—
No support
@media (light-level)Not implemented
Bottom line: Historical knowledge only. Ship prefers-color-scheme and prefers-contrast instead. It is not a runtime API.
Remember
Key Takeaways
Was: ambient light query with dim / normal / washed.
Status: removed from the spec; never implemented.
Replace with:prefers-color-scheme and prefers-contrast.
Production: do not include light-level rules.
One line: know light-level for history; build with preference media features that actually ship.
Frequently Asked Questions
It was a proposed media feature to test ambient light around the device: dim, normal, or washed. The idea was to adapt contrast for dark rooms or bright sunlight.
No. It was never implemented in any browser and was removed from Media Queries Level 5. Queries will not match. Use solid defaults plus prefers-color-scheme and prefers-contrast.
The CSS Working Group removed it as redundant with prefers-contrast and prefers-color-scheme, which can cover similar adaptation goals without relying on ambient light sensors.
Three historical keywords: dim (low light), normal (typical lighting), and washed (very bright / glare).
No. Dark mode is prefers-color-scheme. light-level was about physical ambient light, not the user’s theme preference.
No. Even historically it was specified as a CSS media feature for the browser layout engine, not a Node.js or server runtime feature.