|
1 | 1 | { |
2 | 2 | "spec": { |
3 | | - "title": "CSS View Transitions Module Level 1", |
4 | | - "url": "https://www.w3.org/TR/css-view-transitions-1/" |
| 3 | + "title": "CSS View Transitions Module Level 2", |
| 4 | + "url": "https://www.w3.org/TR/css-view-transitions-2/" |
5 | 5 | }, |
6 | 6 | "properties": [ |
7 | 7 | { |
8 | | - "name": "view-transition-name", |
9 | | - "href": "https://www.w3.org/TR/css-view-transitions-1/#propdef-view-transition-name", |
10 | | - "value": "none | <custom-ident>", |
| 8 | + "name": "view-transition-class", |
| 9 | + "href": "https://www.w3.org/TR/css-view-transitions-2/#propdef-view-transition-class", |
| 10 | + "value": "none | <custom-ident>+", |
11 | 11 | "initial": "none", |
12 | 12 | "appliesTo": "all elements", |
13 | 13 | "inherited": "no", |
|
18 | 18 | "values": [ |
19 | 19 | { |
20 | 20 | "name": "none", |
21 | | - "prose": "The element will not participate independently in a view transition.", |
22 | | - "href": "https://www.w3.org/TR/css-view-transitions-1/#valdef-view-transition-name-none", |
| 21 | + "prose": "No class would apply to the named view transition pseudo-elements generated for this element.", |
| 22 | + "href": "https://www.w3.org/TR/css-view-transitions-2/#valdef-view-transition-class-none", |
23 | 23 | "type": "value", |
24 | 24 | "value": "none" |
25 | 25 | }, |
| 26 | + { |
| 27 | + "name": "<custom-ident>+", |
| 28 | + "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.", |
| 29 | + "href": "https://www.w3.org/TR/css-view-transitions-2/#valdef-view-transition-class-custom-ident", |
| 30 | + "type": "value", |
| 31 | + "value": "<custom-ident>+" |
| 32 | + } |
| 33 | + ], |
| 34 | + "styleDeclaration": [ |
| 35 | + "view-transition-class", |
| 36 | + "viewTransitionClass" |
| 37 | + ] |
| 38 | + }, |
| 39 | + { |
| 40 | + "name": "view-transition-group", |
| 41 | + "href": "https://www.w3.org/TR/css-view-transitions-2/#propdef-view-transition-group", |
| 42 | + "value": "normal | contain | nearest | <custom-ident>", |
| 43 | + "initial": "normal", |
| 44 | + "appliesTo": "all elements", |
| 45 | + "inherited": "no", |
| 46 | + "percentages": "n/a", |
| 47 | + "computedValue": "as specified", |
| 48 | + "canonicalOrder": "per grammar", |
| 49 | + "animationType": "discrete", |
| 50 | + "values": [ |
| 51 | + { |
| 52 | + "name": "normal", |
| 53 | + "prose": "containingGroupName.", |
| 54 | + "href": "https://www.w3.org/TR/css-view-transitions-2/#valdef-view-transition-group-normal", |
| 55 | + "type": "value", |
| 56 | + "value": "normal" |
| 57 | + }, |
| 58 | + { |
| 59 | + "name": "contain", |
| 60 | + "prose": "containingGroupName.", |
| 61 | + "href": "https://www.w3.org/TR/css-view-transitions-2/#valdef-view-transition-group-contain", |
| 62 | + "type": "value", |
| 63 | + "value": "contain" |
| 64 | + }, |
| 65 | + { |
| 66 | + "name": "nearest", |
| 67 | + "prose": "The document-scoped view transition name of the element’s nearest flat tree ancestor which participates in the transition.", |
| 68 | + "href": "https://www.w3.org/TR/css-view-transitions-2/#valdef-view-transition-group-nearest", |
| 69 | + "type": "value", |
| 70 | + "value": "nearest" |
| 71 | + }, |
26 | 72 | { |
27 | 73 | "name": "<custom-ident>", |
28 | | - "prose": "The element participates independently in a view transition—as either an old or new element—with the specified view transition name. The values none and auto are excluded from <custom-ident> here.", |
29 | | - "href": "https://www.w3.org/TR/css-view-transitions-1/#valdef-view-transition-name-custom-ident", |
| 74 | + "prose": "group if the element has a flat tree ancestor whose document-scoped view transition name is group and participates in transition; Otherwise containingGroupName.", |
| 75 | + "href": "https://www.w3.org/TR/css-view-transitions-2/#valdef-view-transition-group-custom-ident", |
30 | 76 | "type": "value", |
31 | 77 | "value": "<custom-ident>" |
32 | 78 | } |
33 | 79 | ], |
34 | 80 | "styleDeclaration": [ |
35 | | - "view-transition-name", |
36 | | - "viewTransitionName" |
| 81 | + "view-transition-group", |
| 82 | + "viewTransitionGroup" |
37 | 83 | ] |
38 | 84 | } |
39 | 85 | ], |
40 | | - "atrules": [], |
41 | | - "selectors": [ |
42 | | - { |
43 | | - "name": "::view-transition", |
44 | | - "prose": "The ::view-transition pseudo-element is a tree-abiding pseudo-element that is also a pseudo-element root. Its originating element is the document’s document element, and its containing block is the snapshot containing block.", |
45 | | - "href": "https://www.w3.org/TR/css-view-transitions-1/#selectordef-view-transition", |
46 | | - "value": "::view-transition" |
47 | | - }, |
48 | | - { |
49 | | - "name": "::view-transition-group()", |
50 | | - "prose": "The ::view-transition-group() pseudo-element is a named view transition pseudo-element that represents a matching named view transition capture. A ::view-transition-group() pseudo-element is generated for each view transition name as a child of the ::view-transition pseudo-element, and contains a corresponding ::view-transition-image-pair().", |
51 | | - "href": "https://www.w3.org/TR/css-view-transitions-1/#selectordef-view-transition-group" |
52 | | - }, |
| 86 | + "atrules": [ |
53 | 87 | { |
54 | | - "name": "::view-transition-image-pair()", |
55 | | - "prose": "The ::view-transition-image-pair() pseudo-element is a named view transition pseudo-element that represents a pair of corresponding old/new view transition captures. This pseudo-element is a child of the corresponding ::view-transition-group() pseudo-element and contains a corresponding ::view-transition-old() pseudo-element and/or a corresponding ::view-transition-new() pseudo-element (in that order).", |
56 | | - "href": "https://www.w3.org/TR/css-view-transitions-1/#selectordef-view-transition-image-pair" |
57 | | - }, |
| 88 | + "name": "@view-transition", |
| 89 | + "href": "https://www.w3.org/TR/css-view-transitions-2/#at-view-transition-rule", |
| 90 | + "descriptors": [ |
| 91 | + { |
| 92 | + "name": "navigation", |
| 93 | + "href": "https://www.w3.org/TR/css-view-transitions-2/#descdef-view-transition-navigation", |
| 94 | + "for": "@view-transition", |
| 95 | + "value": "auto | none", |
| 96 | + "initial": "none", |
| 97 | + "values": [ |
| 98 | + { |
| 99 | + "name": "none", |
| 100 | + "prose": "There will be no transition.", |
| 101 | + "href": "https://www.w3.org/TR/css-view-transitions-2/#valdef-view-transition-navigation-none", |
| 102 | + "type": "value", |
| 103 | + "value": "none" |
| 104 | + }, |
| 105 | + { |
| 106 | + "name": "auto", |
| 107 | + "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\".", |
| 108 | + "href": "https://www.w3.org/TR/css-view-transitions-2/#valdef-view-transition-navigation-auto", |
| 109 | + "type": "value", |
| 110 | + "value": "auto" |
| 111 | + } |
| 112 | + ] |
| 113 | + }, |
| 114 | + { |
| 115 | + "name": "types", |
| 116 | + "href": "https://www.w3.org/TR/css-view-transitions-2/#descdef-view-transition-types", |
| 117 | + "for": "@view-transition", |
| 118 | + "value": "none | <custom-ident>+", |
| 119 | + "initial": "none" |
| 120 | + } |
| 121 | + ], |
| 122 | + "value": "@view-transition { <declaration-list> }" |
| 123 | + } |
| 124 | + ], |
| 125 | + "selectors": [ |
58 | 126 | { |
59 | | - "name": "::view-transition-old()", |
60 | | - "prose": "The ::view-transition-old() pseudo-element is an empty named view transition pseudo-element that represents a visual snapshot of the “old” state as a replaced element; it is omitted if there’s no “old” state to represent. Each ::view-transition-old() pseudo-element is a child of the corresponding ::view-transition-image-pair() pseudo-element.", |
61 | | - "href": "https://www.w3.org/TR/css-view-transitions-1/#selectordef-view-transition-old" |
| 127 | + "name": ":active-view-transition", |
| 128 | + "prose": "The :active-view-transition pseudo-class applies to the root element of the document, if it has an active view transition.", |
| 129 | + "href": "https://www.w3.org/TR/css-view-transitions-2/#active-view-transition-pseudo", |
| 130 | + "value": ":active-view-transition" |
62 | 131 | }, |
63 | 132 | { |
64 | | - "name": "::view-transition-new()", |
65 | | - "prose": "The ::view-transition-new() pseudo-element (like the analogous ::view-transition-old() pseudo-element) is an empty named view transition pseudo-element that represents a visual snapshot of the “new” state as a replaced element; it is omitted if there’s no “new” state to represent. Each ::view-transition-new() pseudo-element is a child of the corresponding ::view-transition-image-pair() pseudo-element.", |
66 | | - "href": "https://www.w3.org/TR/css-view-transitions-1/#selectordef-view-transition-new" |
| 133 | + "name": ":active-view-transition-type()", |
| 134 | + "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:", |
| 135 | + "href": "https://www.w3.org/TR/css-view-transitions-2/#active-view-transition-type-pseudo" |
67 | 136 | } |
68 | 137 | ], |
69 | 138 | "values": [ |
70 | 139 | { |
71 | | - "name": "<pt-name-selector>", |
72 | | - "href": "https://www.w3.org/TR/css-view-transitions-1/#typedef-pt-name-selector", |
| 140 | + "name": "<pt-name-and-class-selector>", |
| 141 | + "href": "https://www.w3.org/TR/css-view-transitions-2/#typedef-pt-name-and-class-selector", |
| 142 | + "type": "type", |
| 143 | + "value": "<pt-name-selector> <pt-class-selector>? | <pt-class-selector>" |
| 144 | + }, |
| 145 | + { |
| 146 | + "name": "<pt-class-selector>", |
| 147 | + "href": "https://www.w3.org/TR/css-view-transitions-2/#typedef-pt-class-selector", |
73 | 148 | "type": "type", |
74 | | - "value": "'*' | <custom-ident>" |
| 149 | + "value": "['.' <custom-ident>]+" |
75 | 150 | } |
76 | 151 | ] |
77 | 152 | } |
0 commit comments