shellscape/postcss-values-parser

No comment in property value

strarsis opened this issue · 2 comments

  • Operating System (or Browser): WSL 2
  • Node Version: v14.16.0
  • postcss-values-parser Version: 5.0.0

How Do We Reproduce?

  1. Use the following input styles:
.test {
  background: /*test*/ red;
}

This is valid CSS. The background property contains a comment in its value.

Expected Behavior

Comment nodes are parsed out.

Actual Behavior

No comment nodes.

would gladly accept a pull request to resolve this issue

So after some testing I came to the conclusion that not this parser skips comments but this is rather something in PostCSS (Declaration node).