Microsoft/vscode

[css] Support for SVG 2 CSS Properties

开放

#85,828 创建于 2019年11月29日

 (18 条评论) (23 个反应) (1 位负责人)TypeScript (39,847 个派生)batch import
css-less-scssfeature-requesthelp wanted

仓库指标

星标
 (184,936 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

SVG 2 introduces the possibility of setting SVG properties in CSS (see CSS Tricks' post under "Element-specific properties -> "Positioning SVG elements"). This means this example should be valid:

circle {
  r: 2;
  cx: 10;
  cy: 100;
}

path {
  d: 'L0 100';
}

However, these properties trigger the s?css(unknownProperties) warning:

image

I'm not too familiar with VS Code's insides and what program checks for valid properties. If this belongs somewhere else, I'd be happy to re-issue there.

Thanks! ✨

贡献者指南