You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[css-view-transitions] Rename UpdateCallback to something more specific.
The WebIDL namespace is global, it's a bit better if we call this
something a bit more view-transitions-specific so that other specs don't
rely on it, since UpdateCallback is otherwise very generic.
I don't think this would be a normative change since the name of a
callback isn't exposed anywhere author visible.
The description of the phases below tries to be as precise as possible, with an intent to provide an unambiguous set of steps for implementors to follow in order to produce a spec-compliant implementation.
1074
1074
1075
1075
: <dfn>update callback</dfn>
1076
-
:: an{{UpdateCallback}} or null. Initially null.
1076
+
:: a{{ViewTransitionUpdateCallback}} or null. Initially null.
Note: This algorithm captures the current state of the document,
1251
-
calls the transition's {{UpdateCallback}},
1251
+
calls the transition's {{ViewTransitionUpdateCallback}},
1252
1252
then captures the new state of the document.
1253
1253
1254
1254
1. Let |document| be |transition|'s [=relevant global object's=] [=associated document=].
@@ -1999,12 +1999,12 @@ Changes from <a href="https://www.w3.org/TR/2022/WD-css-view-transitions-1-20221
1999
1999
* Pointer events resolve to the documentElement when rendering is suppressed. See <a href="https://github.com/w3c/csswg-drafts/issues/7797">issue 7797</a>.
2000
2000
* Add rendering constraints to elements participating in a transition. See <a href="https://github.com/w3c/csswg-drafts/issues/8139">issue 8139</a> and <a href="https://github.com/w3c/csswg-drafts/issues/7882">issue 7882</a>.
2001
2001
* Remove html specifics from UA stylesheet to support ViewTransitions on SVG Documents.
2002
-
* Rename updateDOMCallback to {{UpdateCallback}}. See <a href="https://github.com/w3c/csswg-drafts/issues/8144">issue 8144</a>.
2002
+
* Rename updateDOMCallback to {{ViewTransitionUpdateCallback}}. See <a href="https://github.com/w3c/csswg-drafts/issues/8144">issue 8144</a>.
2003
2003
* Rename snapshot viewport to [=snapshot containing block=].
2004
2004
* Skip the transition if viewport size changes. See <a href="https://github.com/w3c/csswg-drafts/issues/8045">issue 8045</a>.
2005
2005
* Add support for :only-child. See <a href="https://github.com/w3c/csswg-drafts/issues/8057">issue 8057</a>.
2006
2006
* Add concept of a tree of pseudo-elements under [=pseudo-element root=]. See <a href="https://github.com/w3c/csswg-drafts/issues/8113">issue 8113</a>.
2007
-
* When skipping a transition, the {{UpdateCallback}} is called in own task rather than synchronously. See <a href="https://github.com/w3c/csswg-drafts/issues/7904">issue 7904</a>
2007
+
* When skipping a transition, the {{ViewTransitionUpdateCallback}} is called in own task rather than synchronously. See <a href="https://github.com/w3c/csswg-drafts/issues/7904">issue 7904</a>
2008
2008
* When capturing images, at least the in-viewport part of the image should be captured, downscale if needed. See <a href="https://github.com/w3c/csswg-drafts/issues/8561">issue 8561</a>.
2009
2009
* Applying the [=ink overflow=] to the captured image is implementation defined, and doesn't affect the image's [=natural size=]. See <a href="https://github.com/w3c/csswg-drafts/issues/8597">issue 8597</a>.
2010
2010
* Fragmented elements don't participate in view transitions. See <a href="https://github.com/w3c/csswg-drafts/issues/8339">issue 8339</a>.
ViewTransition startViewTransition(optional (UpdateCallback or StartViewTransitionOptions) callbackOptions = {});
722
+
ViewTransition startViewTransition(optional (ViewTransitionUpdateCallback or StartViewTransitionOptions) callbackOptions = {});
724
723
};
725
724
</xmp>
726
725
@@ -730,7 +729,7 @@ div.box {
730
729
731
730
1. Let |updateCallback| be null.
732
731
733
-
1. If |callbackOptions| is an an {{UpdateCallback}}, set |updateCallback| to |callbackOptions|.
732
+
1. If |callbackOptions| is a {{ViewTransitionUpdateCallback}}, set |updateCallback| to |callbackOptions|.
734
733
735
734
1. Otherwise, if |callbackOptions| is a {{StartViewTransitionOptions}}, then set |updateCallback| to |callbackOptions|'s {{StartViewTransitionOptions/update}}.
0 commit comments