-
Notifications
You must be signed in to change notification settings - Fork 22.6k
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
require multiple BCD tables by specifying browser-compat
as an array
#20051
Conversation
Preview URLs (this comment was updated 2022-10-20 07:58:46.528096) |
files/en-us/mdn/writing_guidelines/page_structures/compatibility_tables/index.md
Outdated
Show resolved
Hide resolved
files/en-us/mdn/writing_guidelines/page_structures/compatibility_tables/index.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
files/en-us/mdn/writing_guidelines/page_structures/compatibility_tables/index.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that representing BCD for API pages is not this simple: see the previous discussion.
Or should we use |
OK thanks. This PR adds a note describing how to add multiple BCD tables as array. Is there anything blocking this from landing in its current state? The discussion looks unrelated to the suggested changes. |
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍🏻
@wbamberg would the example be better if we used something other than an API? A CSS feature, maybe? |
Thanks @wbamberg for the detailed response, I understand the concerns. To summarize; adding multiple BCD entries as an array is technically possible, but is discouraged (or a possible anti-pattern). Documenting the ability to add multiple BCD entries will propagate this document structure. If this is pending a decision and agreement for how to proceed, I suggest we close this PR and reference this in the existing discussion, do you have any objections? |
Thinking about this some more: as it stands this PR makes things better rather than worse. This page already recommends including multiple BCD queries for API overview pages sometimes:
This PR just documents a better way of doing that. So maybe we should just merge it, and have the conversation separately. |
Thanks Will, I think that's a good call. I'm going to merge this one now, thanks @yin1999 for the additions 🙌🏻 |
Summary
For we may going to deprecate Compat/Specifications macro parameters, we should
update the documentation about multiple BCD tables querying (for this feature has already been supported by mdn/yari#6465).
Metadata