Implement 'discard' element from SVG Animations
Categories
(Core :: SVG, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox136 | --- | fixed |
People
(Reporter: err, Assigned: longsonr)
References
(Blocks 1 open bug, )
Details
(Keywords: dev-doc-complete)
Attachments
(3 files, 1 obsolete file)
| Assignee | ||
Updated•11 years ago
|
Comment 1•10 years ago
|
||
Updated•10 years ago
|
Comment 2•8 years ago
|
||
Updated•3 years ago
|
| Assignee | ||
Comment 3•2 years ago
|
||
Updated•2 years ago
|
| Assignee | ||
Comment 4•2 years ago
|
||
| Assignee | ||
Comment 5•2 years ago
|
||
Comment 6•2 years ago
|
||
Updated•2 years ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 7•1 year ago
|
||
Comment 10•1 year ago
|
||
| bugherder | ||
Comment 12•1 year ago
|
||
:longonr could you consider nominating this for a release note? (Process info)
We could include it in the nightly only release notes.
| Assignee | ||
Comment 13•1 year ago
•
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]:
[Affects Firefox for Android]: yes
[Suggested wording]: Firefox has an implementation of the SVG discard element. The discard element was originally part of SVG 1.2 tiny and is now part of the SVG 2 animations specification. Currently enabled on nightly only but there will be a pref svg.discard.enabled that you can enable from Firefox 136.
[Links (documentation, blog post, etc)]:
https://svgwg.org/specs/animations/#DiscardElement
https://wpt.fyi/results/svg/animations/reftests?label=experimental&label=master&aligned
https://stackoverflow.com/questions/63411964/svg-animation-discard-element
| Assignee | ||
Comment 14•1 year ago
|
||
I think this is what you need to update the html parser code.
Comment 15•1 year ago
|
||
Thanks. Added to the Fx136 nightly release notes, please allow 30 minutes for the site to update.
Comment 16•1 year ago
|
||
Comment 17•11 months ago
|
||
FF136 MDN docs for this can be tracked in https://github.com/mdn/content/issues/37939
I've written some test code, and I can verify that <discard> works as you would expect in a stand-alone SVG file that is included into HTML as an image. However when I try declare the same SVG inline with my HTML the discard does not appear to work. Is it expected to? Are there specific conditions that should block it doing so?
Comment 18•11 months ago
|
||
Also, do you know how I might get permission to use a modified version of that image linked above http://xn--dahlstrm-t4a.net/svg/smil/svgt12_discard.svg in the docs?
| Assignee | ||
Comment 19•11 months ago
|
||
There are plenty of tests in https://wpt.fyi/results/svg/animations/reftests?label=master&label=experimental&aligned that you can modify.
There aren't any restrictions on discard in HTML e.g. https://wpt.fyi/results/svg/animations/discard-check-removal-order.html?label=experimental&label=master&aligned passes although that creates a discard element dynamically. In HTML discard (like all SVG) does need to be a descendant of an <svg> element. If you attach your testcase to this bug or send it to me directly I can take a look.
Comment 20•11 months ago
|
||
removing nightly+ flag since this will be in the 137 release notes via bug 1945330
Updated•11 months ago
|
Comment 21•10 months ago
•
|
||
FYI, MDN work to unship this in 137/138 linked in https://bugzilla.mozilla.org/show_bug.cgi?id=1954608#c14
Description
•