-
Notifications
You must be signed in to change notification settings - Fork 107
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
should calc-size and interpolate-size features be combined? #2246
Comments
Thank you, David, for filling this. For reference, here are the two features in the explorer:
To me, the question is less about whether the features are part of the same spec, or whether they ship at the same time. We need to think about it from a developer stand point: Would a web developer always use those two features together to achieve a certain scenario? Or, are there cases when they might use them separately, for different things? |
I'm not sure that question makes sense, because I think the best way to think about them is as two interfaces to the same underlying feature: |
In which case grouping them makes sense to me. |
I'm not opposed to this change, but I think it's likely to be confusing to developers. If we make this change, then we should take some steps to alert the responsible parties that this relationship is poorly communicated. Otherwise, I think we're likely to see a "where's the What I was thinkingAs a reviewer on both PRs, the close relationship between these features was not at all obvious. I considered other groupings and the one proposed here was not one of them. I turned to the spec and docs:
Meanwhile the Finally, the existing features have distinct support data. It doesn't look like they shipped together in Edge. What we should do nextIf we're going to merge these features, then I'd expect the following:
|
This is a mistake. I think this is a probably due to the bcd collector somehow. Chris Mills had properly "mirrored" Edge's status in mdn/browser-compat-data#23863 but the PR got closed in favor of this bcd collector one which didn't mirror Edge to Chrome: mdn/browser-compat-data#24210 |
They're currently in the same spec section already (also see the table of contents for the structure). And the explainer for the feature is perhaps clearer about the relationship than the spec is. I've been doing a significant part of the work driving these features to being specified and to ship, and basically all of the communication around them (since So I filed this mainly because I was a bit surprised to see them separate, and also because it's going to be at least a little bit of extra work to correctly tag the WPT tests to the two separate features rather than a single one. That said, I'm ok with leaving them separate if you think that's better. |
That said, an argument for keeping them separate is that it probably is interesting to track their usage levels separately. |
I'm going to just go ahead and add the test annotations and use counters for separate features, so I guess I'll close this. |
#2110 added a feature for interpolate-size and #2148 added a feature for calc-size. However, these are very closely related things, defined in a single spec section, that will hopefully be shipped at the same time in all engines that support them (and was certainly the case when they both shipped in Chromium).
I'm not quite sure what the standard is for when things should be part of a single WebDX feature... but I would have thought these should be a single feature rather than two separate ones.
cc @vwallen @ddbeck
The text was updated successfully, but these errors were encountered: