Skip to content

Variables in media queries #3699

@theetrain

Description

@theetrain

Specification

Description

The ability to use environment variables with env() in media queries for centrally-managed breakpoints and other parameters.

Documentation

<style env-nav-width="400px">
  @media (width < env(--nav-width)) {
    /* */
  }
</style>

Browser support

No support yet as it's an early draft.

Metadata

Metadata

Assignees

No one assigned

    Labels

    early featuresFeature definition work for features without shipping implementationsfeature definitionCreating or defining new features or groups of features.feature entry requestA request for a new web platform feature entry

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions