- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Fri, 14 Nov 2025 05:58:44 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed ``[css-mixins-1] Do we really need the `@contents` parameter?``, and agreed to the following: * `RESOLVED: remove @contents block from the args list` * `RESOLVED: always allow passing @contents block` <details><summary>The full IRC log of that discussion</summary> <ydaniv> TabAtkins: currently in the spec, mixins can take number of args<br> <ydaniv> ... can also take a nested block, you can sub that in mixin<br> <ydaniv> ... with media query to apply, other reasons as well<br> <ydaniv> ... question here is how to declare how this is done<br> <lea> q+<br> <ydaniv> ... the current spec is how you declare the argument in the list, you declare the contents in the args list as well<br> <ydaniv> ... some ppl don't see the point of this, other than declaring, current spec doesn't allow other things to do<br> <ydaniv> ... like typing<br> <ydaniv> ... literaly it's just about declaring the contract<br> <ydaniv> ... but enough ppl are not liking this and we'd like to make it be passable all the time, so maybe remove it from args list<br> <ydaniv> ... if you do pass it then allow but doesn't do anything<br> <ydaniv> ... there are suggestions to retain some of it, like to allow passing ony if mixin uses one<br> <ydaniv> ... like for debugging by replacing contents,<br> <ydaniv> ... if we wannt go this way, than not objecting to always alllow passing it<br> <lea> q-<br> <ydaniv> ... so proposing removing it from args list and always allow passing<br> <lea> I was just in the queue to +1 but if there are no objections, there's no point to spending time arguing why the +1<br> <kizu> +1<br> <lea> +1<br> <kbabbitt> +1<br> <miriam> +1<br> <ydaniv> miriam: +1<br> <ydaniv> proposed resolution: remove @contents block from the args list<br> <ydaniv> lea: if you don't use it in the mixin it's empty<br> <kizu> q+<br> <ydaniv> TabAtkins: yes<br> <ydaniv> astearns: seeing approvements<br> <astearns> ack kizu<br> <ydaniv> kizu: if you have a mixin with @contents that have some malformed decls inside, if you call it without braces then it's replaced by the content<br> <ydaniv> TabAtkins: correct<br> <ydaniv> lea: would be nice to have [missied]<br> <ydaniv> s/[missed]/fallback specified with @contents/<br> <lea> s/[missied]/a way to pass default contents to be used when the mixin is used without contents/<br> <ydaniv> astearns: other things to add?<br> <lea> scribe+<br> <ydaniv> ... obejctions?<br> <lea> TabAtkins: there is, you just add a block<br> <ydaniv> RESOLVED: remove @contents block from the args list<br> <ydaniv> astearns: objections to always allowing to pass @contents block?<br> <ydaniv> RESOLVED: always allow passing @contents block<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12946#issuecomment-3530969952 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 14 November 2025 05:58:45 UTC