- From: andruud via GitHub <noreply@w3.org>
- Date: Mon, 10 Nov 2025 09:27:19 +0000
- To: public-css-archive@w3.org
This is now implemented in the Chrome prototype of mixins, and it basically turned out as I had hoped: when we're about to compute a declaration that contains an arbitrary substitution function, we set up a stack of function frames equivalent to the `@apply` stack that produced the declaration, and the rest of the behavior falls out of that. As a performance experiment, we artificially wrapped _all_ of YouTube's CSS[^1] in a mixin and applied it. Without any kind of cache, this made style recalc rougly ~5% slower, which seems fine. So in terms of impl. complexity and performance, we're happy with this approach. [^1]: YouTube is a known heavy user of custom properties. -- GitHub Notification of comment by andruud Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12927#issuecomment-3510408548 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 10 November 2025 09:27:20 UTC