-
Notifications
You must be signed in to change notification settings - Fork 82
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 #28
Comments
This SVG Property Index will be helpful to any one implementing: http://www.w3.org/TR/SVG/propidx.html Is this a matter of an external contributor adding these properties to |
It's more a matter of whether or not I want SVG property names to show up On Mon, Jan 14, 2013 at 12:45 PM, Josh Carr notifications@github.comwrote:
Nicholas C. Zakas Author, Professional JavaScript for Web Developers |
You should think of description for this project. It doesn't say anything about real use on the web. All SVG property names are part of the web, as SVG became part of web platform, as a standard for vector graphics. Graphics in all forms are essential part of the web. You don't have the power to decide that stroke has real use for the web, while font-family does not. In fact the best you could do, is to include a scraper that would auto-generate that JS file from http://www.w3.org/TR/CSS21/propidx.html and http://www.w3.org/TR/SVG/propidx.html (because it's too much for W3C to provide these in XML/JSON form, duh). |
I made this point in the CSSLint project, but here it is again. In terms of "real use on the web": The popular d3.js project (with ~11600 stars and ~1800 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. |
My argument isn't against adding any SVG properties, it's against adding I think, if the parser were to support SVG properties, it would have to be On Mon, Jan 14, 2013 at 1:41 PM, Josh Carr notifications@github.com wrote:
Nicholas C. Zakas Author, Professional JavaScript for Web Developers |
The W3C CSS validator does however allow one to select validating against SVG, SVG Basic and SVG Tiny. How would you suggest selecting a subset of SVG properties to be used here. I also second the opinion that this tool doesn't dictate whether the user's end environment is HTML, SVG or HTML with "leaked over" SVG properties. That should be up to the end user to determine. What would it take to have an SVG flag setting to allow those properties (so as not to pollute the original intention of the tool and to allow actual usage of some end users)? |
You'll note that I specifically mentioned that the validator allows you to I do want to clarify one point: this tool was intended to be used for I don't think the effort to support such a flag would be onerous. Why don't On Mon, Jan 14, 2013 at 3:34 PM, Josh Carr notifications@github.com wrote:
Nicholas C. Zakas Author, Professional JavaScript for Web Developers |
Just wanted to re-raise this request. I see no reason NOT to add the SVG properties in this PR. |
SVG filters are still used to fallback CSS filters in older (eg few months old) browsers. Plus, all the cool kids are switching to SVG from icon-fonts & PNG illustrations. |
I'm keen to see this get in. Let's mark it for next release. What do you think? On Thu, Jul 3, 2014 at 3:48 PM, tomByrer notifications@github.com wrote:
|
Don't mean to pile on, but anyone using d3.js is more than likely to run into a noisy csslint output b/c these properties are not included. Example:
+1 for fixing this. SVG is a valid W3C spec, and embedding SVG inside HTML is also valid and has been for a many years. |
+1 Yes, please add stroke and fill at least. |
@cscott I'm not sure where to look but after using |
scratch that. found it https://github.com/CSSLint/parser-lib/blob/master/src/css/Properties.js#L423 |
I think you can close this, Properties.js now has fill, stroke, etc. |
Closing for now. Please reopen if something important is missing. |
See CSSLint/csslint#283 (comment)
The text was updated successfully, but these errors were encountered: