Support media fragments with SVG documents
Categories
(Core :: SVG, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox147 | --- | fixed |
People
(Reporter: longsonr, Assigned: longsonr)
Details
(Keywords: dev-doc-needed)
Attachments
(3 files)
| Assignee | ||
Comment 1•26 days ago
|
||
Updated•26 days ago
|
| Assignee | ||
Comment 2•26 days ago
|
||
| Assignee | ||
Comment 3•26 days ago
|
||
From https://svgwg.org/svg2-draft/linking.html#SVGFragmentIdentifiers
-
If the SVG fragment identifier addresses a space segment (e.g., MyDrawing.svg#xywh=0,0,100,100),then the initial view into the SVG document is established using the view specification attributes on the outermost svg element where the 'viewBox' is overriden by the x, y, width and height values provided by the fragment identifier.
-
If the SVG fragment identifier addresses a time segment (e.g., MyDrawing.svg#t=10),then the initial view into the SVG document is established as if no fragment identifier was provided. The rendering of the SVG Document shall be as if the setCurrentTime method on the SVG Document element had been called with the begin time value from the fragment identifier. Additionally, if an end time value is provided in the fragment identifier, the effect is equivalent to calling the pauseAnimations method on the SVG Document when the document time reaches the end time of the fragment identifier.
Updated•21 days ago
|
| Assignee | ||
Comment 4•20 days ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2528ce0feb60
https://hg.mozilla.org/mozilla-central/rev/8c5742cd1005
https://hg.mozilla.org/mozilla-central/rev/a083f2717228
| Assignee | ||
Comment 9•20 days ago
|
||
SVG Documents now work the same as videos i.e. they support media fragment identifiers as defined in https://www.w3.org/TR/media-frags/
-
you can play a portion of a SMIL animation from a specific start time to a specific end time (where the animation will pause) via the temporal dimension syntax.
-
you can display a specific area of an SVG document via the spatial dimension syntax. This works in a similar way to the existing #svgView(viewBox(x,y,w,h)) syntax
Description
•