Support null timeline for printing
Categories
(Core :: CSS Transitions and Animations, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox110 | --- | fixed |
People
(Reporter: boris, Assigned: boris)
References
(Blocks 2 open bugs)
Details
Attachments
(2 files)
Obviously, we pass these 2 tests ([1] and [2]) by accident because
- We are always using document timeline for printing.
- We use
SpecifiedTiming()
when cloning KeyframeEffect but this function may return a special timing for scroll-timeline. I believe we don't want to use it to replace the originalmTiming
when cloning a newAnimationEffect
(because this special version represents the resolved timing for scroll timeline.)
So we have to rewrite Element::CloneAnimationsFrom
and Animation::ClonePausedAnimation
for different types of animation timeline.
[1] https://searchfox.org/mozilla-central/source/testing/web-platform/tests/scroll-animations/css/at-scroll-timeline-default-descriptors-print.tentative.html
[2] https://searchfox.org/mozilla-central/source/testing/web-platform/tests/scroll-animations/css/at-scroll-timeline-default-descriptors-iframe-print.html
Comment 1•3 years ago
|
||
Based on D149683 I guess this should include https://searchfox.org/mozilla-central/source/testing/web-platform/tests/scroll-animations/css/at-scroll-timeline-specified-scroller-print.html too.
Assignee | ||
Comment 2•2 years ago
|
||
In order to avoid cloning and manipulate the scroll timeline objects in
the cloned document (because we may have issues to retrieve the scroll offsets
in the print document and its iframes), so we always use the document
timeline of the cloned document, and clone the paused animation with the
preserved progress.
Also, I rename the test file because "default" doesn't make sense right
now.
Note: animation-timeline-scroll-functional-notation-print.html has one
assertion which is not related to animation. So we don't fix it for now.
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
There is still a spec issue about printing for scroll animations,
https://github.com/w3c/csswg-drafts/issues/8226, so I think moving all of
them into a separate folder makes us easier to address.
Comment 6•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/af9f16e795fc
https://hg.mozilla.org/mozilla-central/rev/9199e7f4539e
Description
•