Draft
Conversation
…into 369-remove-mdn-data-dependency
5 tasks
…into 369-remove-mdn-data-dependency
Contributor
Author
Should be good once the dependency on the content PR for the new l10n file has landed. Tests run fine for me locally. |
Contributor
Maybe tests just run fine locally, because your cached |
…nd run it before the tests
Contributor
|
Kicked off test deployment: https://github.com/mdn/dex/actions/runs/20141208343 |
This was referenced Dec 12, 2025
caugner
reviewed
Dec 19, 2025
Contributor
|
Related: w3c/webref#1766 (comment) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
CSSInfomacroThis removes the dependency on mdn-data for the
{{cssinfo}}macro. Data now comes solely from the contents ofwebref/css, except for translations of the values. The latter are now in a new translation file, living incontent.This is about the Formal defintion blocks on the CSS reference pages. These show up potentially on CSS
propertiesand@-rule descriptors.The legacy mdn-data-sourced localizations contained md/html/macro-enhanced content at times, linking to the data via enumerations. These enumerations along with any localizations, are not available in webref/css. After discussion with the content team it was deemed to be more important to reflect the specs from webref/css properly than any markup-regression we will see with this new approach.
The keys (
inherited,animation type, …) are still translated as before, sourcing translations fromcontent/files/jsondata/L10n-Template.jsonValues are now translated from a new file in
content/files/jsondata/L10n-CSSFormalDefinition.json. All translated languages are missing currently and can be filled in later. The current file includes the en-US values copied straight from the key.CSS_refmacroThis macro used to be based on
mdn-data, with numerous dead links in the resulting list. Since content has shifted away from the Wiki-style "link first, create the page second" mantra, we now base this macro on the actual content in the file system. This is in line with another macro{{APIListAlpha}}that simply walks the file system. This obviously removes the dependency onmdn-dataMotivation
Getting rid of mdn-data and go directly to the source.
Additional details
Related issues and pull requests
This depends on mdn/content#42241 to land before deploying.
Fixes #369.