Skip to content

Small media query parsing bug #4356

Closed
Closed

Description

@matthew-dean

To reproduce:

@media ((color) and (hover)), all { 
  body {
    background: green;
  }
}

Current behavior:

Parsing error, missing closing ')'

Expected behavior:

You can check the CSS validator to see this is valid. Just randomly came across this today.

Environment information:

  • less version:
  • nodejs version:
  • operating system:

Activity

  1. deleted a comment from dosubot on Aug 18, 2025
  2. added this to the 5.0 milestone on Aug 18, 2025
  3. puckowski commented on Jul 13, 2026

    @puckowski
    Contributor

    I believe this issue is resolved per #4427

    Less Playground for 4.6.7 can translate the following:

    @media ((color) and (hover)), all { 
      body {
        background: green;
      }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions