Open Bug 1734456 Opened 3 years ago Updated 3 years ago

WPT test translate-and-transform-css-property-in-svg.html fails in Firefox

Categories

(Core :: SVG, defect)

defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(1 file)

STR:

  1. Load https://wpt.live/css/css-transforms/translate/translate-and-transform-css-property-in-svg.html

ACTUAL RESULTS:
Green rect is small; red is visible.

EXPECTED RESULTS:
Green rect should be large enough to cover red rect.

Attached file testcase 1 (deleted) —

Here's a testcase to dig into this a bit more.

It looks like we specifically fail to honor the SVG transform attribute when a CSS transform subproperty has been specified (first section of this testcase).

But we do honor the transform property in combination with a subproperty (the second section of this testcase), and we do honor the transform attribute when it's specified by itself (third section of this testcase).

Chromium and WebKit both pass this WPT test, and give expected results on my attached 'testcase 1'.

(Though in Chromium, you have to toggle chrome://flags/#enable-experimental-web-platform-features to Enabled in order for the individual transform properties to be enabled.)

Obviously we didn’t handle the individual transforms well with SVG transform attribute. I will check this later.

Assignee: nobody → boris.chiou
Severity: -- → S3

OK. I think we should fix bug 878346 first to make sure transform attribute maps to the CSS transform property first.

Assignee: boris.chiou → nobody
Depends on: 878346
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: