Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help consumers find IDs #2725

Open
captainbrosset opened this issue Feb 28, 2025 · 0 comments
Open

Help consumers find IDs #2725

captainbrosset opened this issue Feb 28, 2025 · 0 comments

Comments

@captainbrosset
Copy link
Contributor

See web-platform-dx/baseline-status#49 for context.

Here are two use cases from @o-t-w:

  1. What is the ID for a feature?

    So to take Intl.DurationFormat as an example. Is the ID intl-durationformat, intldurationformat, intl-duration-format etc. Trial and error usually succeeds but can be frustrating.

  2. Is data for a particular feature even supported at all?

    The feature could be too new or too niche. Or it could be included as part of something else. e.g. Intl.DurationFormat has its own data, whereas some other methods of Intl are included in general support data for Intl, rather than having their own ID.

And an additional example from me:

What if you're interested in writing about mask-clip for example, and want to show a baseline banner for it? How would go about finding if there's a feature for it, and what its ID is?
Searching for mask-clip on webstatus.dev returns 0 results as there's no feature with that name.
I made this page recently: https://web-platform-dx.github.io/web-features-explorer/ids/. With it, you can search for the mask-clip property and see that it's part of the masks feature.
So, something like this, but nicer, and maybe with some words about what BCD keys are and about using the compute-baseline package to display a status based on a BCD key that's part of a bigger feature, would help consumers.

As the web-features repo contains more and more features, and as these features change over time, I think it'll become increasingly useful for consumers of the data to find IDs of features, or ways to point to sub-parts of features. Something to keep in mind and improve over time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant