question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[css] Support for SVG 2 CSS Properties

See original GitHub issue

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! ✨

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:11
  • Comments:13

github_iconTop GitHub Comments

12reactions
jsdbroughtoncommented, May 29, 2020

likewise: dominant-baseline

7reactions
boyumcommented, Nov 29, 2019

Sorry, I misread the documentation. I still rest my case.

image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found