forked from mirrors/gecko-dev
Automatic update from web-platform-tests Reland "VT: Remove containment requirement." This reverts commit f2820f7b99c149d989dee94c1b23c791a7b5f387. This was reverted earlier to wait for CSSWG feedback. The resolution aligns with the behaviour in this patch. https://github.com/w3c/csswg-drafts/issues/8139 Original change's description: > Revert "VT: Remove containment requirement." > > This reverts commit e554cf340761c4b11e0da4d0c98b1b58f9189cbd. > > Reason for revert: Decided against this feature for now. > > Original change's description: > > VT: Remove containment requirement. > > > > This patch removes the containment requirement from view-transitions. > > > > This is to align with proposed resolution > > https://github.com/w3c/csswg-drafts/issues/7882 > > > > R=​khushalsagar@chromium.org, bokan@chromium.org > > > > Fixed: 1409491 > > Change-Id: Iad0eb54c8d2de503f209a58a9f438e586fcd6a36 > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4188811 > > Reviewed-by: David Bokan <bokan@chromium.org> > > Reviewed-by: Khushal Sagar <khushalsagar@chromium.org> > > Commit-Queue: Vladimir Levin <vmpstr@chromium.org> > > Cr-Commit-Position: refs/heads/main@{#1096187} > > Change-Id: Id0b58230eb372a96aa1f1dff2e7d84e2f297219f > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4192788 > Commit-Queue: Vladimir Levin <vmpstr@chromium.org> > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> > Cr-Commit-Position: refs/heads/main@{#1096273} Change-Id: I3da1ee9d5e00b2a9470b99b5f69704fc9b4d0105 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4233087 Commit-Queue: Vladimir Levin <vmpstr@chromium.org> Commit-Queue: Khushal Sagar <khushalsagar@chromium.org> Auto-Submit: Khushal Sagar <khushalsagar@chromium.org> Reviewed-by: Vladimir Levin <vmpstr@chromium.org> Cr-Commit-Position: refs/heads/main@{#1102856} -- wpt-commits: 8304fd86ce591ba34f172f46f5fadc017a4db814 wpt-pr: 38421
39 lines
866 B
HTML
39 lines
866 B
HTML
<!DOCTYPE html>
|
|
<html class=reftest-wait>
|
|
<title>View transitions: set current time</title>
|
|
<link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/">
|
|
<link rel="author" href="mailto:vmpstr@chromium.org">
|
|
<script src="/common/reftest-wait.js"></script>
|
|
<style>
|
|
@keyframes move {
|
|
from {
|
|
transform: translate(500px);
|
|
}
|
|
}
|
|
#target {
|
|
width: 100px;
|
|
height: 100px;
|
|
background: blue;
|
|
view-transition-name: target;
|
|
position: relative;
|
|
left: 100px;
|
|
|
|
animation-name: move;
|
|
animation-duration: 1s;
|
|
animation-timing-function: linear;
|
|
animation-play-state: paused;
|
|
}
|
|
</style>
|
|
|
|
<div id=target></div>
|
|
|
|
<script>
|
|
function runReference() {
|
|
document.getAnimations().forEach((animation) => {
|
|
animation.currentTime = 500;
|
|
});
|
|
takeScreenshot();
|
|
}
|
|
onload = () => requestAnimationFrame(() => requestAnimationFrame(runReference));
|
|
</script>
|
|
|