Skip to content

Interpolation in SCSS-files parsed incorrectly with cq* units #375

Open

Description

Hi! If you use container queries units in expressions with interpolation, then parsing breaks:
Снимок экрана 2023-12-05 в 12 34 39

With other units everything is fine:
Снимок экрана 2023-12-05 в 12 38 24

Activity

  1. DMOAbove commented on Dec 13, 2023

    @DMOAbove

    Similar problem here when doing interpolation for tailwind important
    image

  2. kakiuwang-ui commented on Sep 16, 2026

    @kakiuwang-ui
    Contributor

    I can't reproduce this any more. Using the snippet from the screenshot:

    $PADDING: 1px;
    $COLUMN_WIDTH: calc(100cqw - #{$PADDING});

    doValidation returns no diagnostics with vscode-css-languageservice 6.3.10 (current latest) or 7.0.0-next.2 (the version VS Code main depends on). I also tried #{$x}cqw, calc(#{$x}cqw + 1px), calc(1cqh * #{$x}), and the cqi / cqmin / cqmax units, and none of them report errors. So this looks fixed, and the issue can probably be closed.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions