Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

[Media queries] Negation is ignored when nested media queries exist #2425

@yivo

Description

@yivo

libsass 3.5.0.beta.3-54-gdebb1e32

http://libsass.ocbnet.ch/srcmap/#LmJsb2NrIHsKICBAbWVkaWEgbm90IHByaW50IHsKICAgIEBtZWRpYSAobWluLXdpZHRoOiA2MDBweCkgewogICAgICBjb2xvcjogZ3JlZW47CiAgICB9CiAgfQp9

input.scss

.block {
  @media not print {
    @media (min-width: 600px) {
      color: green;
    }
  }
}

Actual results

@media print and (min-width: 600px) {
  .block {
    color: green; } }

Expected result

@media not print and (min-width: 600px) {
  .block {
    color: green; } }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions