Allow overlapping compat keys - #4034
Conversation
25832e1 to
55e55d1
Compare
55e55d1 to
e473578
Compare
Co-authored-by: Philip Jägenstedt <philip@foolip.org>
| @@ -0,0 +1,54 @@ | |||
| - features: | |||
There was a problem hiding this comment.
We have an allowlist for specs that aren't really specs, and in it, we have comments for why we need them.
Could we do the same here? I feel like this would bring a lot of value over time.
There was a problem hiding this comment.
@captainbrosset yes, this is a good idea. Would a high-level comment field work for you, something like this?
| - features: | |
| - reason: "The `<audio>` and `<video>` elements share the `HTMLMediaInterface`, unlike most other elements' interfaces (e.g., `HTMLDivElement` is exclusive to `<div>` elements)." | |
| features: |
Or are you expecting that we would justify each feature ID and key individually, with a more deeply nested structure?
There was a problem hiding this comment.
A high-level comment works for me!
|
|
||
| - No feature has any claim to being first and the shared interface does not represent a useful feature on its own. | ||
| This sometimes happens when two features share a common interface. | ||
| For example, the `HTMLMediaElement` interface is required for both the `<video>` and `<audio>` elements, but there's no application for the `HTMLMediaElement` alone. |
There was a problem hiding this comment.
| For example, the `HTMLMediaElement` interface is required for both the `<video>` and `<audio>` elements, but there's no application for the `HTMLMediaElement` alone. | |
| For example, the `HTMLMediaElement` interface is required for both the `<video>` and `<audio>` elements, but there's no application for the `HTMLMediaElement` interface alone. |
| @@ -0,0 +1,54 @@ | |||
| - features: | |||
There was a problem hiding this comment.
@captainbrosset yes, this is a good idea. Would a high-level comment field work for you, something like this?
| - features: | |
| - reason: "The `<audio>` and `<video>` elements share the `HTMLMediaInterface`, unlike most other elements' interfaces (e.g., `HTMLDivElement` is exclusive to `<div>` elements)." | |
| features: |
Or are you expecting that we would justify each feature ID and key individually, with a more deeply nested structure?
Towards #1173 and a prerequisite to feature merging.
This PR allows authors to allow BCD keys to be shared between features, by adding them to an allow list. It provides guidelines for when to do this (rarely) and demonstrates it by resolving one of the commented cases where we wished to do this.
This PR is not strictly breaking, but we should announce it in the upcoming changes discussion thread and emphasize this change in the release notes.