← Back to release summary

Media Queries: scripting feature

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

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

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

View on chromestatus.com