Skip to content

SCSS - @container syntax parser issue #8636

Closed

Description

@haidubogdan

Apache NetBeans version

Apache NetBeans 26

What happened

I have this query written in a scss file.

h2 {
    span {
        @container (width < 458px) {
            display: none;
        }
    }
}

Netbeans displays parser errors

Image

Image

Normally this shouldn't be the case for scss files as on compiling this will be converted to :

@container (width < 458px) {
    h2 span {
          display: none;
    }
}

I think for scss files, the @container rule should be more permissive.

Language / Project Type / NetBeans Component

PHP project

How to reproduce

In a scss file.

h2 {
    span {
        @container (width < 458px) {
            display: none;
        }
    }
}

Did this work correctly in an earlier version?

No / Don't know

Operating System

Not relevant, tested on debian and windows

JDK

17

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

Yes

Activity

  1. added
    kind:bug
    needs:triage
    on Jul 7, 2025
  2. added
    CSS
    on Aug 14, 2025
  3. added 2 commits that reference this issue on Apr 26, 2026
  4. added this to the NB31 milestone on Apr 27, 2026
  5. removed
    needs:triage
    on Apr 27, 2026
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

    CSSkind:bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions