Skip to content

Commit 10eb937

Browse files
authored
[css-view-transitions-2] Use FrozenArray for CSSViewTransitionRule.types (#10155)
Based on CSSWG resolution: #10114 (comment) Closes #10114
1 parent 127f19f commit 10eb937

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

css-view-transitions-2/Overview.bs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -413,15 +413,10 @@ The {{CSSViewTransitionRule}} represents a ''@view-transition'' rule.
413413
<xmp class=idl>
414414
enum ViewTransitionNavigation { "auto", "none" };
415415

416-
[Exposed=Window]
417-
interface CSSViewTransitionTypeSet {
418-
readonly setlike<CSSOMString>;
419-
};
420-
421416
[Exposed=Window]
422417
interface CSSViewTransitionRule : CSSRule {
423418
readonly attribute ViewTransitionNavigation navigation;
424-
readonly attribute CSSViewTransitionTypeSet types;
419+
readonly attribute FrozenArray<CSSOMString> types;
425420
};
426421
</xmp>
427422

@@ -521,6 +516,11 @@ partial interface ViewTransition {
521516
};
522517
</xmp>
523518

519+
The {{ViewTransitionTypeSet}} object represents a [=/set=] of strings, without special semantics.
520+
521+
Note: a {{ViewTransitionTypeSet}} can contain strings that are invalid for '':active-view-transition-type'', e.g.
522+
strings that are not a <<custom-ident>>.
523+
524524
The {{ViewTransition/types}} [=getter steps=] are to return [=this=]'s [=ViewTransition/active types=].
525525

526526
## Activating the transition type for cross-document view transitions ## {#types-cross-doc}
@@ -724,7 +724,7 @@ A {{Document}} additionaly has:
724724
A {{ViewTransition}} additionally has:
725725
<dl dfn-for=ViewTransition>
726726
: <dfn>active types</dfn>
727-
:: A [=/set=] of strings, initially empty.
727+
:: A {{ViewTransitionTypeSet}}, initially empty.
728728

729729
: <dfn>outbound post-capture steps</dfn>
730730
:: Null or a set of steps, initially null.

0 commit comments

Comments
 (0)