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

Replying to different people:

> A counterexample is `font-family` which you set to a list of font names. The property could as well be named `font-name` but instead it use the `family` suffix.

I don't believe this is a counterexample, since this is a list of font families (each item is a font family and there is potentially more than one). 

> So I think using `type` in CSS but `typeList` in JS when it's a `DOMTokenList` is consistent enough with current things. But I'm happy to resolve on whatever we reach consensus around.

That's my preference as well, since I believe the majority of the use cases are likely to specify a single type. Although there is precedence in plurality, it feels it would be more consistent with singular names. However, I'm happy with whatever CSSWG agrees on at this point

-- 
GitHub Notification of comment by vmpstr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10070#issuecomment-2000358181 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 19:52:56 UTC