- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 20 Mar 2024 16:22:29 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-view-transitions] 'type' argument that takes an array of types is very weird naming`, and agreed to the following: * `RESOLVED: Switch to using "types" in all the locations.` <details><summary>The full IRC log of that discussion</summary> <fantasai> vmpstr: We have an attribute called 'type' in the opt-in block<br> <fantasai> vmpstr: the corresponding argument is 'type', which takes an array<br> <fantasai> vmpstr: issue raised that 'type' refers to an array of items<br> <fantasai> vmpstr: so bikeshedding issue to figure out what to call these<br> <fantasai> vmpstr: proposals include 'types' everywhere or using 'typeList'<br> <fantasai> vmpstr: interested in opinions<br> <khush_> q+<br> <ntim> q-<br> <astearns> ack khush_<br> <fantasai> khush_: I was suggesting to just use 'type-list'<br> <fantasai> khush_: in a different place we resolved on this for CSS transition rule<br> <bramus> q+<br> <fantasai> khush_: several places where this is provided, should be consistent<br> <astearns> ack bramus<br> <fantasai> khush_: since we said 'typeList' for CSSViewTransitionRule, let's use 'typeList' everywhere<br> <fantasai> 'type-list'/'typeList'<br> <fantasai> bramus: it was inspired by being a DOMTokenList, but no longer a DOMTokenList<br> <ntim> +1 to bramus<br> <fantasai> bramus: I'm a fan of using 'types', it works in both CSS and JS<br> <vmpstr> q+<br> <astearns> ack vmpstr<br> <fantasai> vmpstr: Wrt DOMTokenList, it wouldn't be in CSS object but in DOM it might be<br> <fantasai> vmpstr: OK with renaming, but wanted to clarify<br> <bramus> scribe+<br> <astearns> ack fantasai<br> <TabAtkins> fantasai: I'm also a fan of consistency<br> <TabAtkins> fantasai: I unfortuantely don't have much familiarity with the OM in general<br> <TabAtkins> fantasai: But I remember going with typeList for consistency with classList, but it's not a list in HTML, it's a space-separated list of classes<br> <TabAtkins> fantasai: I think consistnecy acorss objects is important, but it shoudl be clear that if something is an Array it's an Array, not a string<br> <TabAtkins> fantasai: We don't use much plurals in CSS syntax, it's unusual<br> <TabAtkins> bramus: There's some precedent in descriptors<br> <TabAtkins> bramus: override-colors, and symbols<br> <TabAtkins> fantasai: For those you're expected to give multiple values, you really wouldn't give just one<br> <TabAtkins> fantasai: While for this, in many cases it's a single value<br> <khush_> https://github.com/w3c/csswg-drafts/issues/10070#issuecomment-1997836510<br> <TabAtkins> fantasai: So what are the options?<br> <TabAtkins> fantasai: CSSViewTransition at-rule descriptor<br> <TabAtkins> fantasai: and the corresponding CSSViewTransitionRule object<br> <astearns> (this is in the comment khush_ linked above)<br> <khush_> There is a summary here: https://github.com/w3c/csswg-drafts/issues/10070#issuecomment-1997836510<br> <TabAtkins> vmpstr: startViewTransition() parameter<br> <TabAtkins> vmpstr: And last is ViewTransition object returned by that<br> <TabAtkins> fantasai: I have a question, for CSSViewTransitionRule<br> <TabAtkins> fantasai: We have something that represetns the types as an array<br> <TabAtkins> fantasai: Do we also have that as a string? Or just as an array<br> <TabAtkins> vmpstr: We only ahve an array<br> <TabAtkins> (we don't have a consistent pattern in the OM for this)<br> <TabAtkins> fantasai: Is that normal for OM representations of a rule?<br> <TabAtkins> TabAtkins: It's not unusual.<br> <TabAtkins> khush_: the other question is, for CSSVTRule, what type should that have? Currently DOMTokenList, but could be a string or an array of strings<br> <TabAtkins> vmpstr: And one limitation, the OM one can't be called "type", becuase that already exists. And I think that's all the restrictions.<br> <TabAtkins> vmpstr: I propose just "types" everywhere, we can revisit if someone doesn't like it<br> <TabAtkins> +1 to this, personally<br> <bramus> +1<br> <ntim> I like types everywhere<br> <khush_> +1<br> <ntim> There's className too if you look at class :D<br> <TabAtkins> astearns: proposed to use "types" everywhere. Concerns?<br> <TabAtkins> RESOLVED: Switch to using "types" in all the locations.<br> <astearns> https://github.com/w3c/csswg-drafts/issues/10101<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10070#issuecomment-2009980134 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 20 March 2024 16:22:30 UTC