Make SVG transform="" a presentation attribute (map it into the style property)
Categories
(Core :: SVG, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox131 | --- | fixed |
People
(Reporter: heycam, Assigned: emilio)
References
(Blocks 2 open bugs, Regressed 1 open bug, )
Details
(Whiteboard: [sp3])
Attachments
(4 files, 1 obsolete file)
Updated•11 years ago
|
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
Comment 9•7 years ago
|
||
Comment 10•7 years ago
|
||
Comment 11•7 years ago
|
||
Reporter | ||
Comment 12•7 years ago
|
||
Comment 13•7 years ago
|
||
Comment 14•7 years ago
|
||
Comment 15•7 years ago
|
||
Comment 19•6 years ago
|
||
Comment 20•6 years ago
|
||
Comment 21•6 years ago
|
||
Comment 22•6 years ago
|
||
Comment 23•6 years ago
|
||
Comment 24•6 years ago
|
||
Reporter | ||
Comment 25•5 years ago
|
||
Given that, it's worth considering just making the presentation attribute change and deferring the SVGAnimatedTransformList
changes to another bug.
Note that it's not as simple as just adding transform as a mapped attribute, since per spec we need to parse the presentation attribute with the SVG transform syntax (e.g. translate values have no units).
Assignee | ||
Comment 26•5 years ago
|
||
(In reply to Cameron McCormack (:heycam) from comment #25)
Given that, it's worth considering just making the presentation attribute change and deferring the
SVGAnimatedTransformList
changes to another bug.Note that it's not as simple as just adding transform as a mapped attribute, since per spec we need to parse the presentation attribute with the SVG transform syntax (e.g. translate values have no units).
We already parse SVG presentation attributes with ParsingMode::AllowUnitlessLengths right?
Reporter | ||
Comment 27•5 years ago
|
||
Yes, you're right. Though I think there may be other syntax differences we need to support, like not requiring commas between values.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•3 years ago
|
Updated•2 years ago
|
Comment 30•2 years ago
|
||
The severity field for this bug is relatively low, S3. However, the bug has 6 duplicates.
:jwatt, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Comment 31•2 years ago
|
||
The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.
Assignee | ||
Comment 33•4 months ago
|
||
The tricky bit is rotate() which in SVG means something different if
there's an origin (you translate-then-untranslate it).
But this seems to work off-hand, and fix the reminder of bug 1906261.
Updated•4 months ago
|
Updated•4 months ago
|
Updated•4 months ago
|
Comment 34•4 months ago
|
||
(In reply to Cameron McCormack (:heycam) from comment #12)
The current SVG 2 spec text says that the SVGAnimatedTransformList's baseVal
and animVal should reflect the presentation attribute value. That is part
of the wider decision to get rid of animVal's functionality, but with lesser
breakage risk than removing the animVal property altogether. If we did
that, I think it would simplify the work in this bug, since we wouldn't have
to worry about correctly exposing and updating a DOMSVGTransformList to
script that represents the current computed value of the transform property.So what do you think about doing that first? Do you know what the status of
animVal is other browsers?
Link to the spec text:
https://www.w3.org/TR/SVG2/coords.html#InterfaceSVGAnimatedTransformList
Comment hidden (advocacy) |
Comment 36•3 months ago
|
||
Comment 38•3 months ago
|
||
Comment 39•3 months ago
|
||
Comment 40•3 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/246ed0e1a934
https://hg.mozilla.org/mozilla-central/rev/76f787922e86
https://hg.mozilla.org/mozilla-central/rev/7535b5db51e4
Comment 42•3 months ago
|
||
Comment 43•3 months ago
|
||
bugherder |
Updated•2 months ago
|
Updated•2 months ago
|
Updated•1 month ago
|
Updated•20 days ago
|
Description
•