The CSS `scripting` media feature lets developers detect whether JavaScript is enabled in the browser, enabling progressive enhancement patterns. Supported in Firefox 117+, Chrome 120+, and Safari 17+, it allows hiding JS-dependent UI elements (like disclosure buttons) when scripting is unavailable, and showing fallback content instead. A practical example demonstrates a disclosure widget that gracefully degrades when JavaScript is disabled.
1 Impression