diff options
Diffstat (limited to 'testing/web-platform/tests/interfaces/css-view-transitions-2.idl')
-rw-r--r-- | testing/web-platform/tests/interfaces/css-view-transitions-2.idl | 38 |
1 files changed, 27 insertions, 11 deletions
diff --git a/testing/web-platform/tests/interfaces/css-view-transitions-2.idl b/testing/web-platform/tests/interfaces/css-view-transitions-2.idl index 89e57e251b..41337f4e1e 100644 --- a/testing/web-platform/tests/interfaces/css-view-transitions-2.idl +++ b/testing/web-platform/tests/interfaces/css-view-transitions-2.idl @@ -3,23 +3,39 @@ // (https://github.com/w3c/webref) // Source: CSS View Transitions Module Level 2 (https://drafts.csswg.org/css-view-transitions-2/) -dictionary StartViewTransitionOptions { - UpdateCallback? update = null; - sequence<DOMString>? type = null; +partial interface CSSRule { + const unsigned short VIEW_TRANSITION_RULE = 15; }; -partial interface Document { +enum ViewTransitionNavigation { "auto", "none" }; - ViewTransition startViewTransition(optional (UpdateCallback or StartViewTransitionOptions) callbackOptions = {}); +[Exposed=Window] +interface CSSViewTransitionTypeSet { + readonly setlike<CSSOMString>; }; -partial interface CSSRule { - const unsigned short VIEW_TRANSITION_RULE = 15; +[Exposed=Window] +interface CSSViewTransitionRule : CSSRule { + readonly attribute ViewTransitionNavigation navigation; + readonly attribute CSSViewTransitionTypeSet types; }; -enum ViewTransitionNavigation { "auto", "none" }; [Exposed=Window] -interface CSSViewTransitionRule : CSSRule { - attribute ViewTransitionNavigation navigation; - attribute DOMTokenList typeList; +interface ViewTransitionTypeSet { + setlike<DOMString>; +}; + +[Exposed=Window] +partial interface ViewTransition { + attribute ViewTransitionTypeSet types; +}; + +dictionary StartViewTransitionOptions { + UpdateCallback? update = null; + sequence<DOMString>? types = null; +}; + +partial interface Document { + + ViewTransition startViewTransition(optional (UpdateCallback or StartViewTransitionOptions) callbackOptions = {}); }; |