Day 106: the scripting media feature
June 27, 2024
The scripting media feature is an excellent addition to CSS for those who believe in progressive enhancement: It enables you to detect whether scripting languages, such as JavaScript, are supported.
Source: Day 106: the scripting media feature – Manuel Matuzovic
@media has been around for a long longtime in CSS. But only relatively recently as it enabled us to identify whether or not a scripting language (typically JavaScript) is supported, and then style a page depending on that.