vuejs / vetur

Vue tooling for VS Code.
https://vuejs.github.io/vetur/
MIT License
5.75k stars 594 forks source link

CSS lint: SVG props are "unknowProperties" #2887

Open baybal opened 3 years ago

baybal commented 3 years ago

Info

Problem

image

Reproducible Case

Put code below into style section of SFC

circle {
  filter: url(#outline);
  transform-origin: center;
  cx: 50%;
  cy: 50%;
  r: v-bind(r);
  fill: none;
  stroke-width: v-bind(stroke);
}
yoyo930021 commented 3 years ago

It has the same behavior as the CSS file in VSCode. I think you can use https://github.com/microsoft/vscode-css-languageservice/blob/main/docs/customData.md.

In addition, the way it is written does not seem to meet the standard?

baybal commented 3 years ago

It has the same behavior as the CSS file in VSCode. I think you can use https://github.com/microsoft/vscode-css-languageservice/blob/main/docs/customData.md.

In addition, the way it is written does not seem to meet the standard?

It doesn't work in my case. Still shows unknownProperties

baybal commented 3 years ago

image