Repository navigation
Conversation
|
Did you see #4043 before opening this PR? And do you intend to do anything about the non-existent compat data referenced here? |
Updated the description of the ident() CSS function for clarity and conciseness.
|
The compat data just needed a new BCD release, which I think should have this now. Thanks for pointing out the issue! |
ddbeck
left a comment
There was a problem hiding this comment.
I think this is close to done. A couple little suggestions for the description. Thank you!
| @@ -0,0 +1,6 @@ | |||
| name: ident() | |||
| description: The `ident()` CSS function makes a custom identifier from strings, numbers, or other identifiers. You can use it to create dynamic names for CSS variables, view transitions, animations, and others. | |||
There was a problem hiding this comment.
A couple little ideas here:
- Explicitly name the type involved, to incorporate Lea's note from the originating issue
- Let's use the official name for CSS variables
| description: The `ident()` CSS function makes a custom identifier from strings, numbers, or other identifiers. You can use it to create dynamic names for CSS variables, view transitions, animations, and others. | |
| description: The `ident()` CSS function makes a custom `<ident>` from strings, numbers, or other identifiers. You can use it to create dynamic names for custom properties, view transitions, animations, and others. |
There was a problem hiding this comment.
I saw Lea's note, but I'm not sure <ident> is super readable to the average developer, it is more spec jargon. I don't feel too strongly so I'm happy to use it though
There was a problem hiding this comment.
Actually, the spec jargon is <custom-ident>, not custom <ident>. I suggest using either that or custom identifier.
There was a problem hiding this comment.
True, though the function itself is named after the exact same spec jargon 😅 But if we want to avoid it, how about "a CSS identifier"?
There was a problem hiding this comment.
@ddbeck "CSS variables" is perfectly acceptable btw. The spec itself is named css-variables 😅
Co-authored-by: Daniel D. Beck <daniel@ddbeck.com>
LeaVerou
left a comment
There was a problem hiding this comment.
I submitted a suggestion but generally LGTM!
Co-authored-by: Lea Verou <lea@verou.me>
Fixes #4043