Skip to content

Commit f4abc28

Browse files
authored
[css-view-transitions-2] Make some syntax clarifications (w3c#10158)
- Add [SameObject] to CSSOM - Clarify that classes can't include white space
1 parent 38044b3 commit f4abc28

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

css-view-transitions-2/Overview.bs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ The {{CSSViewTransitionRule}} represents a ''@view-transition'' rule.
449449
[Exposed=Window]
450450
interface CSSViewTransitionRule : CSSRule {
451451
readonly attribute ViewTransitionNavigation navigation;
452-
readonly attribute FrozenArray<CSSOMString> types;
452+
[SameObject] readonly attribute FrozenArray<CSSOMString> types;
453453
};
454454
</xmp>
455455

@@ -675,10 +675,15 @@ div.box {
675675
<<pt-name-and-class-selector>> has the following syntax definition:
676676

677677
<pre class=prod>
678-
<dfn>&lt;pt-name-and-class-selector></dfn> = <<pt-name-selector>><<pt-class-selector>>? | <<pt-class-selector>>
678+
<dfn>&lt;pt-name-and-class-selector></dfn> = <<pt-name-selector>> <<pt-class-selector>>? | <<pt-class-selector>>
679679
<dfn>&lt;pt-class-selector></dfn> = ['.' <<custom-ident>>]+
680680
</pre>
681681

682+
When interpreting the above grammar, white space is forbidden:
683+
684+
* Between <<pt-name-selector>> and <<pt-class-selector>>
685+
* Between any of the components of <<pt-class-selector>>.
686+
682687
A [=named view transition pseudo-element=] [=selector=] which has one or more <<custom-ident>> values
683688
in its <<pt-class-selector>> would only match an element if the [=captured element/class list=] value in
684689
[=ViewTransition/named elements=] for the pseudo-element's 'view-transition-name' [=list/contains=] all of those values.

0 commit comments

Comments
 (0)