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

Update background-clip.json #20743

Merged
merged 9 commits into from
Nov 1, 2023
Merged

Update background-clip.json #20743

merged 9 commits into from
Nov 1, 2023

Conversation

C-Ezra-M
Copy link
Contributor

@C-Ezra-M C-Ezra-M commented Sep 18, 2023

Summary

Added correct information for Edge's background-clip compatibility, and added the link to the bug tracker for this issue.

Test results and supporting details

Bug tracker: https://crbug.com/1339290

Related issues

Fixes #15172.
Fixes #16135.

This adds link to the Safari entry, and also fixes HTML syntax errors.
@github-actions github-actions bot added the data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS label Sep 18, 2023
This is so the check for the HTML attribute syntax doesn't fail.
This is so another fix needed to merge this doesn't fail.
Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

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

Thanks! I have two suggestions.

css/properties/background-clip.json Outdated Show resolved Hide resolved
css/properties/background-clip.json Outdated Show resolved Hide resolved
C-Ezra-M and others added 2 commits September 20, 2023 20:32
Remove information about the Chrome bug, which doesn't exist in Safari.

Co-authored-by: Florian Scholz <[email protected]>
I needed to make this commit for correct display of the information at MDN Web Docs.
@C-Ezra-M
Copy link
Contributor Author

Looks like this cannot be merged yet due to an error on a required check. The unit testing script thinks that the entries are not properly sorted, but they are.

@Elchi3
Copy link
Member

Elchi3 commented Sep 21, 2023

hm, yes, I would also think that the current 79+ version range is more important than the older Edge 15 support. The compare script is in https://github.com/mdn/browser-compat-data/blob/main/scripts/lib/compare-statements.ts.

@queengooborg, do you think we should tweak the script?

Copy link
Contributor

@queengooborg queengooborg left a comment

Choose a reason for hiding this comment

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

Apologies for the long delay in responding, this had gotten buried in my emails.

Looking through the code, I see that we specify that statements with partial implementation to be third out of forth in the order of statements, and alt. names to be second. This order seems reasonable to me: if the prefixed version of a feature has full support but the unprefixed version only has partial support, the prefixed version is more important. Because of this, I don't think we should change the script.

However, there is a workaround to this: we add a version_removed to the statement stating version_added: 15. This would solve the issue and better clarify the history of the feature as well:

css/properties/background-clip.json Outdated Show resolved Hide resolved
@Elchi3
Copy link
Member

Elchi3 commented Nov 1, 2023

@queengooborg not sure I understand the failure here now. Could you take another look? Thank you!

@queengooborg
Copy link
Contributor

Since the partial implementation statement didn't have a version_removed, the sorting had considered it to be a "still-supported" statement, so it wanted to move it closer to the top. The output from the linter is not too helpful in this case, I've opened #21125 to discuss that.

I've gone ahead and pushed the fix to resolve this!

Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

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

ahhh thank you for the very quick fix and opening the issue! 🚀

@Elchi3 Elchi3 merged commit 4588e76 into mdn:main Nov 1, 2023
Elchi3 added a commit to Elchi3/browser-compat-data that referenced this pull request Nov 14, 2023
* Update background-clip.json

Fixes mdn#15172

* fix background-clip.json

This adds link to the Safari entry, and also fixes HTML syntax errors.

* HTML syntax fix

This is so the check for the HTML attribute syntax doesn't fail.

* apply npm run fix

This is so another fix needed to merge this doesn't fail.

* Update css/properties/background-clip.json

Remove information about the Chrome bug, which doesn't exist in Safari.

Co-authored-by: Florian Scholz <[email protected]>

* Revert 7b58a03

I needed to make this commit for correct display of the information at MDN Web Docs.

* Update css/properties/background-clip.json

Co-authored-by: Queen Vinyl Da.i'gyu-Kazotetsu <[email protected]>

* Add version_removed to Edge 12 statement

---------

Co-authored-by: Florian Scholz <[email protected]>
Co-authored-by: Queen Vinyl Da.i'gyu-Kazotetsu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS
Projects
None yet
3 participants