-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add all SVG properties #283
Comments
That's because the |
All right, can it be removed then to avoid further confusion? |
…ies, addressed concern from CSSLint#283
Sure. |
@stubbornella thoughts on adding SVG properties? |
I haven't seen this in the wild. @skrat - Can you give examples of svg properties used live? Preferably on large commercial type sites rather than experimental blog type sites. |
The almighty [ SVG filters are also kinda cool. However, right now they are only supported by Gecko (outside of SVG, that is). |
This is the killer feature of SVG over Canvas. I use it to style complex Sent from my HAL9000 |
@stubbornella, @skrat and @nzakas The popular d3.js project (with ~8600 stars and ~1200 forks) is a big proponent of using SVG and styling with CSS. D3 is used by the NY Times, Square, GitHub and other large commercial orgs. Consider this another vote for adding these properties to the 'known' list. |
@joshcarr I came here to say that. I've never used SVG styles before, but my new project uses d3, and now csslint is bitchy. :) |
csslint is in the way of d3.js, for sure.. who had the idea of really leaving them out, anyway? Anyway.. please add them. |
A friendly bump. Sure would be nice to have this. |
Using SVG styles to color some D3 charts at Trulia. Not an experimental blog :-) |
I'm using grunt in conjunction with csslint right now on a primarily d3.js project. Since I use a lot of SVG properties, csslint is currently not that helpful to me. +1 |
Using Snap.svg with styles in CSS rather than my JavaScript. This would really be a nice feature. +1 |
any reason for not accepting this pull request? I'm in the same predicament as others, using svg properties to style d3 graphs |
This isn't a pull request, see CSSLint/parser-lib#28 and CSSLint/parser-lib#97 for the discussion on why those PRs haven't been included. |
The linter is flagging the property |
👍 SVG's are now promoted as best practice especially for icons. |
In the meantime, how do I make it ignore specifically the property 'fill'? |
It just complained about |
Will this be done? having many errors of unknown property since I use more svg now |
CBuntrock: I had the same issues until I realised my csslint version was outdated. Updated it and check again. |
for anyone who struggles with this, add this rule to your gulpfile and set
|
I think you can close this ticket; all the properties have been added, see https://github.com/CSSLint/parser-lib/blob/master/src/css/Properties.js. |
I think this might be useful as SVG is becoming more common. It should recognize all non-CSS2 SVG properties as specified here http://www.w3.org/TR/SVG/styling.html#SVGStylingProperties
I tried myself but adding them to known-properties.js and building, doesn't seem to work.
The text was updated successfully, but these errors were encountered: