-
Notifications
You must be signed in to change notification settings - Fork 131
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
Native profile of SVG #657
Comments
Hi Myles, I have many thoughts, but I think the first priority should be to get this hosted in the repo properly. I'm assuming the HTML file you attached is the result of rendering Bikeshed source code, as previously discussed. Have you talked with @tabatkins or @heycam about getting svgwg.org set up to build & host bikeshed specs? I could probably eventually figure out the necessary tooling scripts myself, but I'd be happy to let anyone else take the lead & it's possible some work has been done on it previously. Regardless, I think we could probably add the .bs file to the repo even if we don't yet have a host URL for the built draft. Probably in specs/svg-native/. |
@litherum @AmeliaBR I uploaded the HTML file to specs/svg-native/ and cherry-picked the commit to gh-pages. The draft proposal can now be reached with the link: http://w3c.github.io/svgwg/specs/svg-native/index.html Hopefully that simplifies the review process. Edit: Of course, this is just a temporary solution. |
My initial review of the document: General commentsThat is a really great write up of the proposal! Thanks a lot @Litherium!
Scope of the specI think we already agreed that SVG Native will be a strict subset of SVG 1.1 and SVG 2.0. Based on this discussion I think the following restrictions are to restric:
image element
styling
basic shapes/paths
TextNot sure if it is enough to say that the chapter was deleted. I suppose this depends how the spec itself sees itself. Painting
Gradients
ClippingI most definitely support the approach you take here!
MetadataAt Adobe we would like to keep |
Another name idea is "Encapsulated SVG" (ESVG), in a similar fashion to "Encapsulated PostScript" (EPS). The file extension could be .esvg.
I would go even further and restrict the allowed units to (unitless) and px. The only exception would be the "width" and "height" attributes on the root
The "style" attribute should be allowed since the SVG 2 spec states that "(...) in the future, any new properties that apply to SVG content will not gain presentation attributes. Therefore, authors are suggested to use styling properties, either through inline ‘style’ properties or style sheets, rather than presentation attributes, for styling SVG content."
Yeah, I think it's worth checking which features are supported by Android's VectorDrawable file format as it had very similar design goals (security, performance, ubiquity). VectorDrawable does support basic theming and even animations (which are used extensively by modern native UIs).
I would additionally require all referenced elements to be placed inside the |
As it has been renamed from "Native" to "Static", it looks like the document was run through a search and replace that was too aggressive. "Static" is a better word to talk about the svg profile, but "static apps" isn't better than "native apps", and actually downright confusing. |
Just wanted to point out that there is already a precedent name for a cut-down version of the spec with a subset of features. The SVG 1.2 Tiny spec was intended for devices with limited processing and memory resources. It seems a comparable purpose to me. So why not "SVG 2.0 Tiny"? |
Probably because Tiny 1.1 and Tiny 1.2 had animation, for example (and text) while this is a more aggressive subset and does not. |
The WG accepted the initial editor's draft. I tried to migrate everyone's thoughts to other issues on the issue tracker, so I think this issue can be closed. If I missed someone's comments, please feel free to either 1) re-open this issue so I can migrate it, or 2) just open an issue directly. Thanks! |
Sorry for the delay in setting up the build scripts, I was on PTO. Pushing to the repository should now automatically build the svg-native spec with Bikeshed. |
And there it is: https://svgwg.org/specs/svg-native/ Thanks @heycam & everyone else who helped figure out the logistics! |
The SVG Charter lists Native SVG as a deliverable for this working group.
This deliverable (once it exists) describes a profile of SVG, and its associated file format, that is suitable for native apps. In particular, it's designed to be a wire format, similar to jpeg or png, designed to represent 2D images. The idea is to be a strict subset of the existing SVG specification, and is designed to be written and read by automated systems instead of humans.
Here is an initial draft of the specification. It is provided as a delta spec from SVG 1.1, where the section listing matches the sections in the SVG 1.1 spec.
The document is named "SVG Static" as this name fits the design principles well.
We'd love to hear any and all thoughts and feedback about this initial draft!
index.html.zip
The text was updated successfully, but these errors were encountered: