- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 27 Jan 2021 18:01:49 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-cascade] What is the appropriate syntax for appending to nested layers?`. <details><summary>The full IRC log of that discussion</summary> <dael> Topic: [css-cascade] What is the appropriate syntax for appending to nested layers?<br> <dael> github: https://github.com/w3c/csswg-drafts/issues/5791<br> <dael> miriam: In the layers spec we allow nesting of layers. Accessing nested layers through some syntax to say I'm not jsut adjusting default but defualt inside framework. What is syntax to combine<br> <dael> miriam: In spec we use a dot. framework.default framework.theme. Felt to some of us space is fine and more css-y<br> <dael> miriam: At the bottom I provided samples of proposals. / syntax. , syntax but we have that elsewhere for ordering.<br> <TabAtkins> q+<br> <fantasai> +1 to space<br> <dael> miriam: I think space is simpliest and communicates fine<br> <astearns> +1 to space, too<br> <leaverou> yeah avoid commas<br> <leaverou> ^ that was ChrisL<br> <dael> TabAtkins: I would be fine with space. But every time I look at this the dot looks really good. Probably my JS mind, but want to lean on it. Implies the nesting in a way the space doesn't<br> <dael> TabAtkins: Okay with space, but I really like the period<br> <dael> florian: One reason I'm not too hot on period is b/c this is new syntax I start to wonder if you can have spaces around period or css comments betwee. I suspect answer is yes and then it starts to drift from feels like JS<br> <dael> TabAtkins: I would say no spaces. Can't stop comments, but no space<br> <dael> fantasai: I agree with florian. B/c we don't have existing syntax this gets complicated. In terms of convaying nesting we doo it with a space in selectors<br> <TabAtkins> q+<br> <leaverou> q?<br> <dael> leaverou: Agree a space is more natural to css<br> <JonathanNeal> Strong agreement with the comment about periods. In CSS, a space can mean I’m configuring something, adding another value, and rarely does it mean I’m reaching into something.<br> <astearns> ack TabAtkins<br> <dael> TabAtkins: Analogy with selectors is why I'm uncomfortable with space. The direct nesting is the arrow and I don't want to do that.<br> <JonathanNeal> Oh, right, except for selector syntaxes, and I would not want to mentally parse the space as a kind of combinator.<br> <dael> TabAtkins: We don't want to imply other selecto syntax works. It's a bit foreign to css but similar to many other programming languages. Method chaining works exactly how we want. Dealing with space as combinator is only kinda sorta appropraite<br> <fantasai> yeah -1 to using ><br> <dael> astearns: Looks like TabAtkins and JonathanNeal like period. Everyone else has said space. Anyone else with period preference?<br> <dael> astearns: TabAtkins you said you would be okay using space? You wouldn't object?<br> <dael> TabAtkins: I won't object but I may want to revisit. Selectors is only place we use space to do nesting and that's not the right type of nesting to evoke. Not happy, but won't object<br> <JonathanNeal> In CSS, I prefer when space is just the absence of meaning.<br> <dael> fremy: one question. if we want to do search isn't using space a bit harder. Less searchable. If you use space you split the things apart. If you want ot use in properties it's more difficult<br> <TabAtkins> quick straw poll?<br> <dael> fremy: Not a strong preference, but I think dot is a bit nices. Easier to search with a dot then with a space.<br> <dael> astearns: You mena searching for all nested layers?<br> <dael> fremy: Yeah.<br> <dael> fremy: In general I feel it's more unique to space. Not a strong opinion. I feel like dot is more useful.<br> <dael> leaverou: How about straw poll.<br> <leaverou> space<br> <TabAtkins> Period<br> <fantasai> space<br> <jensimmons> space<br> <dael> astearns: IRC straw poll.<br> <futhark> period<br> <faceless2> period<br> <JonathanNeal> period<br> <argyle> period<br> <dholbert> period<br> <fremy> period<br> <florian> space<br> <bradk> Period<br> <dlibby> period<br> <rachelandrew> space<br> <dael> astearns: From that it looks like we're learning toward period<br> <dael> astearns: 8 to 6<br> <dael> leaverou: Not exactly consensus<br> <dael> TabAtkins: 9 to 5 I think. Not consensus. But changing to less popular might be premature.<br> <dael> astearns: Spec uses dot?<br> <dael> many: yeah<br> <dael> fantasai: Then we'd have to put in work to make periods work.<br> <JonathanNeal> Not that it should matter, but syntactically, I think a period is easier than a space.<br> <argyle> https://www.irccloud.com/pastebin/fbQB8Xeq/<br> <dael> florian: Agree it's more awkward to spec, but that's not the main concern<br> <dael> astearns: No consensus. Leave this one open and leave spec as is for now?<br> <dael> fantasai: Leave issue open and collect feedback<br> <dael> astearns: Nice to close issues, but I don't think we have consensus. We're down to space or period, though<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5791#issuecomment-768467740 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 27 January 2021 18:01:51 UTC