← Back to release summary

Media Queries: scripting feature

Category
CSS
Type
Chromium catches up
Status
Enabled by default (Chrome 120)
Intent stage
None

WPT details: https://wpt.fyi/results/css/mediaqueries?label=master&label=experimental&aligned&q=scripting

Summary

The scripting media feature is used to query whether scripting languages, such as JavaScript, are supported on the current document. Valid options are 'enabled', 'initial-only', 'none'. However, 'initial-only' never matches inside a browser.

Standards & signals

Ecosystem

Samples: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/scripting

View on chromestatus.com