Closed Bug 1999989 Opened 26 days ago Closed 20 days ago

Support media fragments with SVG documents

Categories

(Core :: SVG, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
147 Branch
Tracking Status
firefox147 --- fixed

People

(Reporter: longsonr, Assigned: longsonr)

Details

(Keywords: dev-doc-needed)

Attachments

(3 files)

No description provided.
Assignee: nobody → longsonr
Status: NEW → ASSIGNED

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.

Attachment #9526502 - Attachment description: Bug 1999989 Part 1 - Rename and export MediaFragmentURIParser r=emilio → Bug 1999989 Part 1 - Rename, move and export MediaFragmentURIParser r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/56116 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 20 days ago
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch
Upstream PR merged by moz-wptsync-bot

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

Flags: in-testsuite+
Keywords: dev-doc-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: