-
Notifications
You must be signed in to change notification settings - Fork 72
/
css-view-transitions-2.json
151 lines (151 loc) · 5.98 KB
/
css-view-transitions-2.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{
"spec": {
"title": "CSS View Transitions Module Level 2",
"url": "https://drafts.csswg.org/css-view-transitions-2/"
},
"properties": [
{
"name": "view-transition-class",
"href": "https://drafts.csswg.org/css-view-transitions-2/#propdef-view-transition-class",
"value": "none | <custom-ident>+",
"initial": "none",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "none",
"prose": "No class would apply to the named view transition pseudo-elements generated for this element.",
"href": "https://drafts.csswg.org/css-view-transitions-2/#valdef-view-transition-class-none",
"type": "value",
"value": "none"
},
{
"name": "<custom-ident>+",
"prose": "All of the specified <custom-ident> values (apart from none) are applied when used in named view transition pseudo-element selectors. none is an invalid <custom-ident> for view-transition-class, even when combined with another <custom-ident>. Each 'view transition class' is a tree-scoped name.",
"href": "https://drafts.csswg.org/css-view-transitions-2/#valdef-view-transition-class-custom-ident",
"type": "value",
"value": "<custom-ident>+"
}
],
"styleDeclaration": [
"view-transition-class",
"viewTransitionClass"
]
},
{
"name": "view-transition-group",
"href": "https://drafts.csswg.org/css-view-transitions-2/#propdef-view-transition-group",
"value": "normal | contain | nearest | <custom-ident>",
"initial": "normal",
"appliesTo": "all elements",
"inherited": "no",
"percentages": "n/a",
"computedValue": "as specified",
"canonicalOrder": "per grammar",
"animationType": "discrete",
"values": [
{
"name": "normal",
"prose": "containingGroupName.",
"href": "https://drafts.csswg.org/css-view-transitions-2/#valdef-view-transition-group-normal",
"type": "value",
"value": "normal"
},
{
"name": "contain",
"prose": "containingGroupName.",
"href": "https://drafts.csswg.org/css-view-transitions-2/#valdef-view-transition-group-contain",
"type": "value",
"value": "contain"
},
{
"name": "nearest",
"prose": "The document-scoped view transition name of the element’s nearest flat tree ancestor which participates in the transition.",
"href": "https://drafts.csswg.org/css-view-transitions-2/#valdef-view-transition-group-nearest",
"type": "value",
"value": "nearest"
},
{
"name": "<custom-ident>",
"prose": "group if the element has a flat tree ancestor whose document-scoped view transition name is group and participates in transition; Otherwise containingGroupName.",
"href": "https://drafts.csswg.org/css-view-transitions-2/#valdef-view-transition-group-custom-ident",
"type": "value",
"value": "<custom-ident>"
}
],
"styleDeclaration": [
"view-transition-group",
"viewTransitionGroup"
]
}
],
"atrules": [
{
"name": "@view-transition",
"href": "https://drafts.csswg.org/css-view-transitions-2/#at-view-transition-rule",
"descriptors": [
{
"name": "navigation",
"href": "https://drafts.csswg.org/css-view-transitions-2/#descdef-view-transition-navigation",
"for": "@view-transition",
"value": "auto | none",
"initial": "none",
"values": [
{
"name": "none",
"prose": "There will be no transition.",
"href": "https://drafts.csswg.org/css-view-transitions-2/#valdef-view-transition-navigation-none",
"type": "value",
"value": "none"
},
{
"name": "auto",
"prose": "The transition will be enabled if the navigation is same-origin, without cross-origin redirects, and whose NavigationType is traverse, or push or replace, with user navigation involvement not equal to \"browser UI\".",
"href": "https://drafts.csswg.org/css-view-transitions-2/#valdef-view-transition-navigation-auto",
"type": "value",
"value": "auto"
}
]
},
{
"name": "types",
"href": "https://drafts.csswg.org/css-view-transitions-2/#descdef-view-transition-types",
"for": "@view-transition",
"value": "none | <custom-ident>+",
"initial": "none"
}
],
"value": "@view-transition { <declaration-list> }"
}
],
"selectors": [
{
"name": ":active-view-transition",
"prose": "The :active-view-transition pseudo-class applies to the root element of the document, if it has an active view transition.",
"href": "https://drafts.csswg.org/css-view-transitions-2/#active-view-transition-pseudo"
},
{
"name": ":active-view-transition-type()",
"prose": "The :active-view-transition-type() pseudo-class applies to the root element of the document, if it has a matching active view transition. It has the following syntax definition:",
"href": "https://drafts.csswg.org/css-view-transitions-2/#active-view-transition-type-pseudo"
}
],
"values": [
{
"name": "<pt-name-and-class-selector>",
"href": "https://drafts.csswg.org/css-view-transitions-2/#typedef-pt-name-and-class-selector",
"type": "type",
"value": "<pt-name-selector> <pt-class-selector>? | <pt-class-selector>"
},
{
"name": "<pt-class-selector>",
"href": "https://drafts.csswg.org/css-view-transitions-2/#typedef-pt-class-selector",
"type": "type",
"value": "['.' <custom-ident>]+"
}
]
}