Intent to Prototype: named-feature() function for CSS @supports

30 views
Skip to first unread message

David Baron

unread,
10:47 AM (5 hours ago) 10:47 AM
to blink-dev
Contact emails
dba...@chromium.org

Explainer
https://github.com/w3c/csswg-drafts/blob/main/css-conditional-5/named-feature-explainer.md

Specification
https://drafts.csswg.org/css-conditional-5/#typedef-supports-named-feature-fn

Summary
The named-feature() function allows CSS @supports rules to query for a small set of specific named features that are not possible to test for using other @supports mechanisms but which are considered highly valuable to test for.

Blink component
Blink>CSS

Web Feature ID
Missing feature

Motivation
Sometimes we add new features to CSS where two things are simultaneously true: first, that CSS authors see high value in writing conditional styles for whether the feature is supported using @supports, and second, that the existing mechanisms in @supports don't provide a useful way to test for the feature. This provides a way for us to give names to a small number of high-value features so that CSS authors can test for them in their style sheets.

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

Requires code in //chrome?
False

Tracking bug
https://issues.chromium.org/353715317

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5153932394102784?gate=5078781807820800

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages