Add named-feature() feature - #4272
Open
ddbeck wants to merge 3 commits into
Open
Conversation
captainbrosset
requested changes
Aug 27, 2026
| @@ -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." | |||
Contributor
There was a problem hiding this comment.
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." |
rviscomi
reviewed
Aug 27, 2026
| @@ -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." | |||
Collaborator
There was a problem hiding this comment.
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." |
This comment was marked as spam.
This comment was marked as spam.
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
force-pushed
the
add-named-feature-feature/zuvkkkxzmqky
branch
from
September 3, 2026 08:42
a882897 to
393684d
Compare
ddbeck
commented
Sep 3, 2026
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." |
Collaborator
Author
There was a problem hiding this comment.
@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?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3697. I modeled this one rather closely after
supports-at-rule(source, dist).