Intent to Prototype: CSS functions

910 views
Skip to first unread message

Steinar H. Gunderson

unread,
Feb 13, 2024, 5:13:44 AMFeb 13
to blin...@chromium.org
Contact emails:
se...@chromium.org

Explainer:
https://css.oddbird.net/sasslike/mixins-functions
https://docs.google.com/document/d/1Je7kBKdBg3ZDfoSA6ezzkQfehWkV2uv14Vxn1UJc3QY/edit#heading=h.3fj2wo8vn37w

Specification: None

Summary:
User-defined functions in CSS, aka @function. Related to, but not the same
as, mixins. Let authors define custom functions that can do more-or-less
arbitrary manipulation (though not Turing-complete at this stage), and then
refer to them from CSS declaration lists similarly to how var() is
interpolated.

Blink component:
Blink>CSS

Initial public proposal
https://github.com/w3c/csswg-drafts/issues/9350#issuecomment-1939628591

TAG review:
None

Risks

Interoperability and Compatibility:
There is not spec yet, so this is to try to get experience with
implementation and use. This means that initially, no browsers will
be compatible with each other, and this is not meant for the public web.

Gecko:
No signal

WebKit:
No signal

Web developers:
No signals

WebView application risks:
None

Debuggability:
We will need some kind of support from devtools eventually,
or functions will be very hard to debug.

Is this feature fully tested by web-platform-tests?
No

Flag name on chrome://flags:
CSSFunctions

Finch feature name:
None

Non-finch justification:
New feature, not suitable for A/B testing.

Requires code in //chrome?:
False

Estimated milestones:
We hope to get a rough prototype out in Q1.

Link to entry on the Chrome Platform Status:
https://chromestatus.com/feature/5179721933651968

/* Steinar */

Kevin Babbitt

unread,
Feb 15, 2024, 11:59:47 AMFeb 15
to Steinar H. Gunderson, blin...@chromium.org
Is there a tracking bug for this feature?

Thanks
Kevin

-----Original Message-----
From: Steinar H. Gunderson <se...@chromium.org>
Sent: Tuesday, February 13, 2024 2:14 AM
To: blin...@chromium.org
Subject: [blink-dev] Intent to Prototype: CSS functions

[You don't often get email from se...@chromium.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/20240213101333.ovzmevgpq2dliivb%40sesse.net.

Steinar H. Gunderson

unread,
Feb 16, 2024, 5:29:09 AMFeb 16
to Kevin Babbitt, blin...@chromium.org
On Thu, Feb 15, 2024 at 04:59:25PM +0000, Kevin Babbitt wrote:
> Is there a tracking bug for this feature?

I created one, crbug.com/325504770.

/* Steinar */
--
Homepage: https://www.sesse.net/
Reply all
Reply to author
Forward
0 new messages