Skip to content

Add named-feature() feature - #4272

Open
ddbeck wants to merge 3 commits into
web-platform-dx:mainfrom
ddbeck:add-named-feature-feature/zuvkkkxzmqky
Open

Add named-feature() feature#4272
ddbeck wants to merge 3 commits into
web-platform-dx:mainfrom
ddbeck:add-named-feature-feature/zuvkkkxzmqky

Conversation

@ddbeck

@ddbeck ddbeck commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Fixes #3697. I modeled this one rather closely after supports-at-rule (source, dist).

@github-actions github-actions Bot added the feature definition Creating or defining new features or groups of features. label Aug 27, 2026
Comment thread features/supports-named-feature.yml Outdated
@@ -0,0 +1,5 @@
name: named-feature()
description: "The `named-feature()` function, when used with `@supports`, checks if a CSS behavior. For example, `@supports named-feature(anchor-position-follows-transforms)` checks whether anchor-positioning applies after transforms."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: "The `named-feature()` function, when used with `@supports`, checks if a CSS behavior. For example, `@supports named-feature(anchor-position-follows-transforms)` checks whether anchor-positioning applies after transforms."
description: "The `named-feature()` function, when used with `@supports`, checks if a CSS behavior is supported. For example, `@supports named-feature(anchor-position-follows-transforms)` checks whether anchor-positioning applies after transforms."

Comment thread features/supports-named-feature.yml Outdated
@@ -0,0 +1,5 @@
name: named-feature()
description: "The `named-feature()` function, when used with `@supports`, checks if a CSS behavior. For example, `@supports named-feature(anchor-position-follows-transforms)` checks whether anchor-positioning applies after transforms."

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing the end of the first sentence

Suggested change
description: "The `named-feature()` function, when used with `@supports`, checks if a CSS behavior. For example, `@supports named-feature(anchor-position-follows-transforms)` checks whether anchor-positioning applies after transforms."
description: "The `named-feature()` function, when used with `@supports`, checks if a CSS behavior is supported. For example, `@supports named-feature(anchor-position-follows-transforms)` checks whether anchor-positioning applies after transforms."

I also wonder if "CSS behavior" might be a bit too non-descript. It could be helpful to mention where the list of valid values come from.

Suggested change
description: "The `named-feature()` function, when used with `@supports`, checks if a CSS behavior. For example, `@supports named-feature(anchor-position-follows-transforms)` checks whether anchor-positioning applies after transforms."
description: "The `named-feature()` function, when used with `@supports`, checks if a browser supports a specific CSS feature or behavioral update from a predefined list defined in the specification. For example, `@supports named-feature(anchor-position-follows-transforms)` checks whether anchor-positioning applies after transforms."

Comment thread features/supports-named-feature.yml
@walletflo1234-code

This comment was marked as spam.

ddbeck and others added 2 commits September 3, 2026 10:37
Co-authored-by: Rick Viscomi <rviscomi@users.noreply.github.com>
Co-authored-by: Rick Viscomi <1120896+rviscomi@users.noreply.github.com>
Co-authored-by: Patrick Brosset <1152698+captainbrosset@users.noreply.github.com>
@ddbeck
ddbeck force-pushed the add-named-feature-feature/zuvkkkxzmqky branch from a882897 to 393684d Compare September 3, 2026 08:42
Comment on lines +3 to +5
The `named-feature()` function, when used with `@supports`, checks if a named CSS behavior is supported.
The CSS behavior names are defined by specification.
For example, `@supports named-feature(anchor-position-follows-transforms)` checks whether anchor-positioning applies after transforms."

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rviscomi @captainbrosset Apparently one has to save a file before committing. 😅

I took both of your suggestions and tried my best to synthesize one. Want to take another look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature definition Creating or defining new features or groups of features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

named-feature() function for CSS @supports

4 participants