- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 25 Oct 2023 16:41:37 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[cssom-view] checkVisibility options have inconsistent naming schemes`, and agreed to the following: * `RESOLVED: don’t rename but define pattern for arguments and add aliases` <details><summary>The full IRC log of that discussion</summary> <bramus> Rossen_: who can take this?<br> <bramus> fantasai: is ntim here?<br> <bramus> fantasai: 3 open Qs<br> <bramus> … what are we gonna call the checkContentVisibility option?<br> <bramus> … name for various options pretty inconsistent<br> <bramus> … last one was brought up by smfr<br> <vmpstr> q+<br> <fantasai> https://github.com/w3c/csswg-drafts/issues/9487#issuecomment-1769013122<br> <bramus> … maybe method on window, mirroring getComputedStyle<br> <TabAtkins> q+<br> <bramus> … tim’s suggestion was to go with “…VisibilityProperty”<br> <bramus> … and “…VisibilityAuto“<br> <Rossen_> ack vmpstr<br> <emilio> q+<br> <bramus> vmpstr: this is shipping both chrome and firefox, so bar to change should be a bit higher<br> <bramus> … for the names, we have quite a long discussion with various people and we ended with checkVisibility which isnt the greatest name<br> <bramus> TabAtkins: the fn name and location cant be changed at this point<br> <Rossen_> ack TabAtkins<br> <bramus> … its been stable for a while now<br> <bramus> … could alias the option names<br> <bramus> … for consistenty, but cant remove existing ones<br> <Rossen_> ack emilio<br> <bramus> emilio: we could add usecounters to track usage<br> <bramus> … changing from Element.checkVisibility to something else feels like a bit too much<br> <bramus> … separate function could query psuedoEls<br> <bramus> … bu we can add that option to E.checkVisibility<br> <bramus> … unless someone objects, we should resolve on not changing<br> <bramus> … we are not restricted to booleans<br> <bramus> … could pass in “auto” as a string<br> <Rossen_> q?<br> <bramus> fantasai: would be good to set up some consistent way to deal with the option<br> <bramus> … we could do passing in the name of the prop and the interested value<br> <bramus> … is a bit weird to have camelCase names of props and values<br> <bramus> … we could not have that if we wanted, e.g. 'content-visibility'<br> <bramus> emilio: web animations does that a lot<br> <bramus> … could take a look at that<br> <fantasai> s/values/values in strings/<br> <bramus> flackr: confirming<br> <bramus> emilio: only unfortunate thing is visiblity being in the function name and also property name<br> <bramus> … we could probably say that as long as you opt in to one of both … define what happens when you specifiy both<br> <TabAtkins> yeah, just ORing the aliases together seems reasonable imo<br> <vmpstr> q+<br> <flackr> web-animations-1 spec refers to https://drafts.csswg.org/cssom/#css-property-to-idl-attribute to convert the names<br> <Rossen_> ack vmpstr<br> <TabAtkins> I propose we take this back to the issue to figure out a proposal for a new set of values, and we can discuss it there. We should reject renaming/moving the function itself.<br> <bramus> vmpstr: if we add more props and alias existing ones, then is the plan to deprecate the existing props and unship? or do we ship both sets of props so devs can mix and match?<br> <bramus> emilio: we could try to unship, but its not a lot of effort to check two bools instead of one<br> <TabAtkins> q+<br> <bramus> TabAtkins: my proposal is that we reject the rename and return to the issue<br> <bramus> … and see if we can come up with a consistent set of readable names<br> <Rossen_> ack TabAtkins<br> <bramus> … to then look at, and adopt as aliases<br> <fantasai> fooProperty / fooPropertyValue<br> <bramus> fantasai: one proposal in the issue is to follow fooProperty / fooPropertyValue system<br> <bramus> Rossen_: going back to TabAtkins’ proposal, is there sth to resolve on?<br> <emilio> fooProperty / fooPropertyValue seems ok to me fwiw<br> <bramus> … we can do it next week when Tim et al are here<br> <bramus> fantasai: I suspect its OK to resolve, they can reopen<br> <bramus> Rossen_: SGTM<br> <bramus> PROPOSED RESOLUTION: reject rename<br> <bramus> fantasai: don’t rename but define pattern for ?? arguments and add aliases<br> <fantasai> s/aliases/aliases that combine with OR/<br> <bramus> TabAtkins: when we come up with reasonable set of names, then we can talk about it … and alias them if we add new names<br> <bramus> Rossen_: Objections?<br> <fantasai> s/rename/rename method/<br> <bramus> PROPOSED RESOLUTION: don’t rename but define pattern for arguments and add aliases<br> <bramus> RESOLVED: don’t rename but define pattern for arguments and add aliases<br> <bramus> Rossen_: tim can always reopen<br> <bramus> fantasai: comments on the proposed pattern in the issue?<br> <bramus> … cause there is a pattern in the issue<br> <bramus> TabAtkins: havent thought about it yet. will look at it in the issue<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9487#issuecomment-1779664600 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 25 October 2023 16:41:39 UTC