- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Thu, 07 Nov 2024 00:27:53 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed ``[css-values-4][Editorial] `<condition>` type that other specs reference``, and agreed to the following: * `RESOLVED: Add <boolean-expr[...]> as a value definition syntax function multiplying its argument into a boolean expression microsyntax` <details><summary>The full IRC log of that discussion</summary> <TabAtkins> fantasai: we have a lot of places we'<br> <TabAtkins> fantasai: we're using the not/and/or microsyntax - MQs, SQs, style queries, etc<br> <TabAtkins> fantasai: and now if()<br> <TabAtkins> fantasai: So we decided it would be more understandable to factor out that commonality into its own syntax "multiplier"<br> <TabAtkins> fantasai: similar to * and # in grammars<br> <TabAtkins> fantasai: So we introduced `<boolean [<grammar-here>]>`<br> <TabAtkins> fantasai: This isn't for authors to write, it's part of our Value Definition Syntax<br> <fantasai> https://drafts.csswg.org/css-values-5/#boolean<br> <TabAtkins> fantasai: whatever's inside the brackets is a parameter for the boolean tree (it's the leaves of the and/or/not tree)<br> <fantasai> https://drafts.csswg.org/css-values-5/#value-defs<br> <TabAtkins> fantasai: It's defined here, and also in the valdefs list<br> <TabAtkins> fantasai: [describes the syntax]<br> <TabAtkins> astearns: Currently it's just in Values 5, hasn't moved to toher specs?<br> <TabAtkins> fantasai: right<br> <dbaron> btw my comment about naming was about sounding like true/false rather than and/or/not<br> <fantasai> TabAtkins: we have an example of applying it to @container queries, since that's a complex grammar<br> <fantasai> TabAtkins: makes it easier to understand<br> <fantasai> astearns: [reads dbaron's comment]<br> <fantasai> TabAtkins: Lea also had this comment<br> <fantasai> TabAtkins: open to suggestions<br> <TabAtkins> fantasai: we didn't want to go with "condition" because it's such a generic term, seemed like it would actually be less clear<br> <TabAtkins> dholbert: "boolean-condition"?<br> <TabAtkins> fantasai: note that it is a functinoal syntax, not just `<boolean>` by itself, there's something between the [].<br> <TabAtkins> astearns: do we want any particular resoltion?<br> <TabAtkins> fantasai: if we're happy, we can accept adding it to the VDS<br> <TabAtkins> astearns: I think I'd like to noodle on the name a bit more<br> <TabAtkins> astearns: but i don't really have an idea of what to repalce it with<br> <TabAtkins> fantasai: we could make it longer with `<boolean-expression [...]>` but unsure if that's clearer<br> <TabAtkins> dholbert: makes it clearer it's not just true/false in the programming sense<br> <TabAtkins> dholbert: in the issue I saw a bunch of `<*-condition>` grammar terms used with it, so maybe `<boolean-condition>` would be good to follow it<br> <TabAtkins> fantasai: What we're trying to say is that this is the epxression syntax, not the conditions themselves. The condition is inside the []<br> <fantasai> <boolean[ <test> ]> = not <boolean-group> | <boolean-group><br> <fantasai> [ [ and <boolean-group> ]*<br> <fantasai> | [ or <boolean-group> ]* ]<br> <fantasai> <boolean-group> = <test> | ( <boolean[ <test> ]> ) | <general-enclosed><br> <TabAtkins> fantasai: [explains]<br> <TabAtkins> fantasai: it's kinda a syntactic function in the same way as + is, just more sophisticated<br> <fantasai> <container-query> = <boolean[ <cq-test> ]><br> <TabAtkins> astearns: I think I do prefer boolean-expr in that last example<br> <TabAtkins> fantasai: ok<br> <kbabbitt> I like <boolean-expression[...]> as well<br> <TabAtkins> fantasai: so should we resolve to add boolean-expression?<br> <kbabbitt> boolean-expr is fine too<br> <TabAtkins> TabAtkins: i really want to shorten it to expr, I did that reflexively when minuting<br> <fantasai> PROPOSED: Add <boolean-expression[...]> as a value definition syntax function multiplying its argument into a boolean expression microsyntax<br> <TabAtkins> fantasai: i'm fine, tho we don't usually use shortened terms<br> <fantasai> fantasai: it would be exposed in @property?<br> <TabAtkins> astearns: let's propose it with boolean-expr<br> <fantasai> TabAtkins: no, not unless we say so<br> <TabAtkins> astearns: objection?<br> <fantasai> RESOLVED: Add <boolean-expr[...]> as a value definition syntax function multiplying its argument into a boolean expression microsyntax<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10457#issuecomment-2461076362 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 7 November 2024 00:27:54 UTC