Skip to content

[css-media-queries] Nesting Media Queries #1191

Description

@andresgalante

Hi,
This is related to: https://www.w3.org/TR/mediaqueries-4/

I just found myself in a situation where I wanted to nest media queries. For example:

@media (min-width: 50em) {
  ...
  and @media (orientation: landscape) { ... }
}

I know I can use and on a new declaration, but nesting them makes it so much nicer IMO.

Is this something that others think it's useful or I am just pushing it?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions