[css] Support for SVG 2 CSS Properties
See original GitHub issueSVG 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:
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! ✨
Issue Analytics
- State:
- Created 4 years ago
- Reactions:11
- Comments:13
Top Results From Across the Web
SVG Properties and CSS
SVG Properties and CSS ... SVG has its own set of elements, attributes and properties to the extent that inline SVG code can...
Read more >Styling — SVG 2
Elements in an SVG document can be styled using CSS. Most visual characteristics and some aspects of element geometry are controlled using CSS...
Read more >SVG and CSS - SVG: Scalable Vector Graphics | MDN
SVG has its own CSS properties and values. Some of them are similar to CSS properties for HTML. Challenge. Change the stylesheet so...
Read more >"SVG in css" | Can I use... Support tables for HTML5, CSS3, etc
1 Supported in Firefox under the layout.css.filters.enabled flag. 2 Supported in MS Edge under the "Enable CSS filter property" flag.
Read more >SVG Style Properties Reference — Using SVG with CSS3 and ...
SVG 2 converts a number of SVG 1 layout attributes into style properties that can be defined either as presentation attributes or in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
likewise:
dominant-baseline
Sorry, I misread the documentation. I still rest my case.