Skip to content

[Bug]: pass wrong css to lightingcss-loader without any warning but loader will remove the code #9896

@SyMind

Description

@SyMind

System Info

Details

@media screen and (max-width: 1440px) {
    .k-common-quick-access-item {
      margin-right: 12px;
      margin-bottom: 12px;
      width: calc((100% - 24px) / 3);

      &:nth-child(6n - 1) {
        margin-right: 0px;
      }
    }
  }

  @media screen and (min-width: 1440px) and(max-width: 1920px) {
    .k-common-quick-access-item {
      margin-right: 12px;
      margin-bottom: 12px;
      width: calc((100% - 36px) / 4);

      &:nth-child(8n - 1) {
        margin-right: 0px;
      }
    }
  }

  @media screen and (min-width: 1920px) {
    .k-common-quick-access-item {
      margin-right: 12px;
      margin-bottom: 12px;
      width: calc((100% - 48px) / 5);

      &:nth-child(10n - 1) {
        margin-right: 0px;
      }
    }
  }

Reproduce link

No response

Reproduce Steps

Metadata

Metadata

Assignees

Labels

pending triageThe issue/PR is currently untouched.teamThe issue/pr is created by the member of Rspack.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions