Skip to content

Media query express support #3735

Closed
Closed
@woody-li

Description

@woody-li

A new range syntax introduced in Media Queries Level 4.

The syntax allow query expresses, includes range express.

But i got an error when using the syntax.

To reproduce:

@media (400px <= width <= 700px) {
    .main-box {
        display: flex;
    }
}

Current behavior:

less: Missing closing ')' in file test.less line no. 1

Expected behavior:

Convert to css with the syntax correctly

Environment information:

  • less version: 4.1.3
  • nodejs version: 16.14.0
  • operating system: win

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions