Intent to Prototype and Ship: named-feature() function for CSS @supports
88 views
Skip to first unread message
Ting-Yu Lin 林庭宇
unread,
Aug 20, 2026, 11:59:24 PM (5 days ago) Aug 20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev-pl...@mozilla.org
Summary: named-feature() is an @supports function that lets authors detect features that cannot be expressed with any other @supports mechanism.
One of the features Gecko is developing is CSS anchor positioning with transforms [1]. Once it is ready, authors can detect the feature with @supports named-feature(anchor-position-follows-transforms).
Preference: This is a simple feature requiring no dedicated preference. I'm planning to ship it in Firefox 156. That is, the detection mechanism is in place, but every named-feature() query evaluates to false at the moment.
Once layout.css.anchor-positioning.follows-transforms.enabled is enabled, named-feature(anchor-position-follows-transforms) will evaluate to true.