Skip to content

Does not work when used with variables and hsl #24

@steverandy

Description

@steverandy

Repo for demo: https://github.com/steverandy/postcss-demo/tree/reduced

Actual output:

:root {
  --rgb: #b366ff;
  --hsl: hsl(270, 100%, 70%);
}

test {
  --test-rgb: rgba(179, 102, 255, 0.25);
  --test-hsl: hsla(270, 100%, 70%, 0.25);
  --test-rgb-var: rgba(179, 102, 255, 0.25);
  --test-hsl-var: color-mod(hsl(270, 100%, 70%) alpha(25%));
}

Expected output:

:root {
  --rgb: #b366ff;
  --hsl: hsl(270, 100%, 70%);
}

test {
  --test-rgb: rgba(179, 102, 255, 0.25);
  --test-hsl: hsla(270, 100%, 70%, 0.25);
  --test-rgb-var: rgba(179, 102, 255, 0.25);
  --test-hsl-var: hsla(270, 100%, 70%, 0.25);
}

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