- From: Noam Rosenthal via GitHub <sysbot+gh@w3.org>
- Date: Sat, 28 Oct 2023 09:12:29 +0000
- To: public-css-archive@w3.org
noamr has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-view-transitions-2] resolve on descriptor/parameter names ==
The current [editor's draft](https://drafts.csswg.org/css-view-transitions-2/) defines a few new names.
We should resolve whether they're the right names or should be changed.
Current spec:
```css
/* css */
@view-transition {
navigation: auto | none;
type: foo bar;
}
```
```js
/* js */
document.startViewTransition({
update: () => { ... },
type: ["foo", "bar"]
});
viewTransitionRule.type // DOMTokenList
```
Proposing that:
- The navigation-type descriptor is `navigation`, and its current possible values are `auto` and `none`.
- The type descriptor is `type`. Its default value is an empty list. There is no `none` value or so.
- The JS parameter for `startViewTransition` as well as the property name in the CSSOM rule can be `typeList`, to be consistent with `classList`, as it receives some sort of iterable. Alternatively we can keep it as `type` or use `types`.
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9534 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 28 October 2023 09:12:31 UTC