Skip to content

Commit 0fa7654

Browse files
authored
[css-view-transitions-2] Clarify that CSSViewTransitionRule returns an empty string for invalid/missing navigation descriptor (#10766)
Closes #10654
1 parent 9409fea commit 0fa7654

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

css-view-transitions-2/Overview.bs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,20 +442,29 @@ Note: this needs to be cached in the boolean because the result needs to be read
442442
via the URL address bar or clicking a bookmark, as well as any form of user or script initiated {{NavigationType/reload}}.
443443
</dl>
444444

445+
This at-rule conforms with the forward-compatible parsing requirement of CSS;
446+
conformant parsers that don't understand these rules will ignore them without error.
447+
Any descriptors that are not recognized or implemented by a given user agent,
448+
or whose value does not match the grammars given here or in a future version of this specification,
449+
must be ignored in their entirety;
450+
they do not make the ''@view-transition'' rule invalid.
451+
445452
### Accessing the ''@view-transition'' rule using CSSOM ### {#cssom}
446453

447454
The {{CSSViewTransitionRule}} represents a ''@view-transition'' rule.
448455

449456
<xmp class=idl>
450-
enum ViewTransitionNavigation { "auto", "none" };
451-
452457
[Exposed=Window]
453458
interface CSSViewTransitionRule : CSSRule {
454-
readonly attribute ViewTransitionNavigation navigation;
459+
readonly attribute CSSOMString navigation;
455460
[SameObject] readonly attribute FrozenArray<CSSOMString> types;
456461
};
457462
</xmp>
458463

464+
The {{CSSViewTransitionRule/navigation}} getter step is to return the value of the corresponding ''@view-transition/navigation'' descriptor if one exists, otherwise the empty string.
465+
466+
The {{CSSViewTransitionRule/types}} getter steps is to return the value of the corresponding ''@view-transition/types'' descriptor if one exists, otherwise an empty [=list=].
467+
459468
# Selective view transitions # {#selective-vt}
460469

461470
## Overview ## {#selective-vt-overview}

0 commit comments

Comments
 (0)