Skip to content

Commit 96d7e3c

Browse files
authored
Add element-scoped view transitions (#3681)
Fixes #3423
1 parent 860369b commit 96d7e3c

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Element-scoped view transitions
2+
description: >
3+
The `startViewTransition()` method of an `Element` object starts a view transition that affects only that element's DOM tree.
4+
The `contain: view-transition` CSS declaration contains the layout of the tree to be transitioned.
5+
You can use this to run separate elements' transitions concurrently.
6+
spec: https://github.com/WICG/view-transitions/blob/main/scoped-transitions.md
7+
group: view-transitions
8+
# Expecting:
9+
# compat_features:
10+
# - api.Element.startViewTransition
11+
# - css.properties.contain.view-transition
12+
# This feature is subordinate to view-transitions. It should probably merge into
13+
# it one day.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Generated from: view-transitions-element-scoped.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support: {}

scripts/specs.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ const defaultAllowlist: allowlistItem[] = [
175175
[
176176
"https://www.w3.org/TR/2019/WD-feature-policy-1-20190416/",
177177
"Allowed because feature policy was replaced by permissions policy."
178+
],
179+
[
180+
"https://github.com/WICG/view-transitions/blob/main/scoped-transitions.md",
181+
"Allowed until there's proper spec text. Follow https://github.com/w3c/csswg-drafts/issues/9890 for details."
178182
]
179183
];
180184

0 commit comments

Comments
 (0)