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

Add keys from BCD 5.6.6 release to existing features #1972

Merged
merged 13 commits into from
Oct 28, 2024

Conversation

jamesnw
Copy link
Collaborator

@jamesnw jamesnw commented Oct 15, 2024

New keys introduced by BCD 5.6.6:

  • css.properties.white-space-collapse.preserve-spaces (added compute_from to avoid baseline impact)
  • css.properties.column-width.auto (no impact to baseline)
  • css.properties.object-position.applies_to_iframe_elements (added compute_from to avoid baseline impact)

@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Oct 15, 2024
Comment on lines +76 to +87
# baseline: high
# baseline_low_date: 2020-01-15
# baseline_high_date: 2022-07-15
# support:
# chrome: "50"
# chrome_android: "50"
# edge: "79"
# firefox: "50"
# firefox_android: "50"
# safari: "9"
# safari_ios: "9"
- css.properties.column-width.auto
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused here. The browser versions for the auto value on MDN doesn't match what we have here:
image

Checking BCD confirms what's on MDN:
image

Any idea why our code returns these older browser versions for this key?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused here. The browser versions for the auto value on MDN doesn't match what we have here:

Interesting. It looks like column-width was prefixed in Chrome until version 50, and compute-baseline is able to pick up that the auto keyword would have been only usable with a prefixed property. So I think what is in the dist here is correct, but I'm not sure if BCD needs an update of some sort.

Copy link
Collaborator

@ddbeck ddbeck Oct 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right. compute-baseline checks ancestor compat features (we turned this on in #1485). This is an oddity of BCD's data model. It can't directly express the idea that a feature is, for example, behind a prefix when some parent of that feature is behind a prefix.

@@ -3,5 +3,8 @@ description: The `object-position` CSS property places images, videos, and other
spec: https://drafts.csswg.org/css-images-3/#the-object-position
# object-fit on caniuse includes both object-fit and object-position.
# `caniuse: object-fit` is set in object-fit.yml
status:
compute_from: css.properties.object-position
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description says "images, videos, and other replaced elements", but now we're ignoring iframes, which is also a replaced element. So I think we should do something like this: call out the iframe exception in the description, and add a TODO comment about removing the callout once iframes are taken into account.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really dislike the way this information has been represented in BCD. I think the addition of the applies_to_iframe_elements key ought to be reverted (and left a comment saying so). Until mdn/browser-compat-data#23586 is resolved, I'd suggest:

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in e95bb19

features/white-space-collapse.yml Show resolved Hide resolved
@jamesnw jamesnw requested a review from ddbeck October 21, 2024 14:20
@ddbeck
Copy link
Collaborator

ddbeck commented Oct 28, 2024

I'm going to move head with this. @captainbrosset, if you still have suggestions or concerns, would you open a follow up PR or issue? Thank you!

@ddbeck ddbeck merged commit da61d78 into web-platform-dx:main Oct 28, 2024
3 checks passed
vwallen pushed a commit to oddbird/web-features that referenced this pull request Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature definition Creating or defining new features or groups of features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants