-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat(lint): set mdn_url
via unambiguously related browser-compat
frontmatter keys
#25563
Conversation
09ade07
to
0b8d526
Compare
browser-compat
frontmattermdn_url
via unambiguously related browser-compat
frontmatter keys
mdn_url
via unambiguously related browser-compat
frontmatter keysmdn_url
via unambiguously related browser-compat
frontmatter keys
@@ -4,7 +4,7 @@ | |||
"url": { | |||
"__compat": { | |||
"description": "`<url>`", | |||
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/url_value", | |||
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/url_function", |
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.
This looks wrong (in content), as this feature is about the url
type, not the url()
function.
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.
see also #25413
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.
See also: #25582.
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.
Nice work! 👍
Summary
Fills the
mdn_url
field by matching BCD feature paths withbrowser-compat
keys.Test results and supporting details
Generally, the way this works is as follows:
browser-compat
frontmatter,mdn_url
accordingly (unless the current url contains a fragment).This has some caveats:
We could only add
mdn_url
s this way, but it would mean errors (e.g. duplicating a feature, not replacing themdn_url
) could slip through reviews and wouldn't get auto-fixed.Related issues
See #25555 for a manual PR that should be solved automatically.