Re: [csswg-drafts] [css-view-transitions] 'type' argument that takes an array of types is very weird naming (#10070)

> I tend towards `types`, there is precedent for using plural in descriptors (e.g. @counter-style has a few)

As this point I was gonna suggest `types` as well. It describes what you are defining _(hinting at possibility to add more than one)_, it’s vague enough to be correct in both CSS and JS land, and it makes it easy for the author to use: the thing is called `types` _(independent of the context)_.

As you mention `@counter-style` has precedent for having a descriptor that is plural. Another one is [`@font-palette-values`](https://drafts.csswg.org/css-fonts/#om-fontpalettevalues)’s [`override-colors`](https://drafts.csswg.org/css-fonts/#override-color)

-- 
GitHub Notification of comment by bramus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10070#issuecomment-1999138223 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 15 March 2024 08:14:02 UTC