Implement hyperlink targeting of animation elements

RESOLVED FIXED in mozilla15

Status

()

Core
SVG
RESOLVED FIXED
8 years ago
5 years ago

People

(Reporter: jwatt, Unassigned)

Tracking

(Blocks: 1 bug, {dev-doc-needed})

unspecified
mozilla15
dev-doc-needed
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(status2.0 wanted)

Details

(Whiteboard: [parity-Opera][parity-webkit], URL)

(Reporter)

Description

8 years ago
The SVG spec includes support for starting an animation based on hyperlinking. See:

http://www.w3.org/TR/SVG11/animate.html#IndefiniteValue
http://www.w3.org/TR/smil-animation/#HyperlinkSemantics

Also at least one of the W3C SVG 1.1 Full testsuite tests requires this:

http://www.w3.org/Graphics/SVG/Test/20061213/htmlObjectHarness/full-animate-elem-29-b.html

This bug depends on being able to seek to an earlier point in the timeline: bug 492458.
Whiteboard: [parity-Opera][parity-webkit]
(Reporter)

Updated

6 years ago
status2.0: --- → wanted
(Reporter)

Comment 1

6 years ago
We basically need to do two things:

 * When we start the timeline after the document is loaded, we need to
   check for a hash and trigger any animation as applicable (be careful
   of pauseAnimations being called before load, that on unpauseAnimations
   things work correctly).

 * We need to have the document listen for 'hashchange' events and trigger
   animations as appropriate. Something like:

  nsCOMPtr<nsIDOMEventTarget> evtTarget = do_QueryInterface(doc);
  evtTarget->AddEventListener(NS_LITERAL_STRING("hashchange"),
                              mEventListener, PR_FALSE);
Component: SVG → Tracking
Target Milestone: --- → flash10
(Reporter)

Updated

6 years ago
Component: Tracking → SVG
Target Milestone: flash10 → mozilla2.2

Updated

5 years ago
Depends on: 512525

Comment 2

5 years ago
the patch in bug 512525 fixes this too.

Comment 3

5 years ago
patch in bug 512525 implemented this.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: mozilla5 → mozilla15

Updated

5 years ago
Keywords: dev-doc-needed
You need to log in before you can comment on or make changes to this bug.