Open Bug 779599 Opened 13 years ago Updated 1 month ago

Consider doing animations of transforms on frames that are svg transformed off the main thread

Categories

(Core :: DOM: Animation, task)

task

Tracking

()

REOPENED

People

(Reporter: dzbarsky, Unassigned)

References

Details

Attachments

(1 obsolete file)

No description provided.
Opacity already works. Transform can't be animated until SVG attributes are promoted to properties.
Severity: normal → S3

I think this could work now? Do you know what's the issue if we just remove this?

Flags: needinfo?(longsonr)

What David said in comment 11 is still true i.e. we haven't unified transform attributes and transform properties. Having said that it might well work now anyway. I guess we'd have to try it and see.

Flags: needinfo?(longsonr)

Ah, I missed that transform wasn't mapped (I guess I confused it with transform-origin here).

So I guess we'd need to audit the transform syntax and make sure to use the CSS parser instead of this, or keep using the custom parser etc.

Depends on: 878346
No longer depends on: 1876387

It needs custom parsing because transform attributes don't have units but CSS transform properties do.

Well sure but we already allow unitless lengths for all svg mapped attributes. But yeah cam mentioned the lack of commas in bug 878346 which might be more problematic.

Severity: S3 → --
Component: Graphics: Layers → Graphics
OS: macOS → Unspecified
Hardware: x86 → Unspecified

The severity field is not set for this bug.
:bhood, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(bhood)

works now.

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 878346
Flags: needinfo?(bhood)
Resolution: --- → DUPLICATE

This needs more work. I have a mochitest that fails without the patch I'm just going to attach.

Status: RESOLVED → REOPENED
No longer duplicate of bug: 878346
Resolution: DUPLICATE → ---
Assignee: nobody → longsonr
Type: defect → task
Component: Graphics → DOM: Animation

Most SVG transforms happen on the compositor now. Those that don't are where we have a viewBox on the parent e.g. a symbol with a viewBox or an inner svg element with a viewBox.

We'd need to teach compositor how to handle these transforms to complete this bug.

Assignee: longsonr → nobody
Attachment #9433789 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: