Proposal: Repetitive CSS function data between functions.json and syntaxes.json
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 787
- Forks
- 216
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 6
Description
What information was incorrect, unhelpful, or incomplete?
many CSS function data are repetitive represented the functions.json file and syntaxes.json file, this may cause inconsistent and hard to maintain
for example:
https://github.com/mdn/data/blob/d572bcb6dd50f3be7acc87d6203c7b740a280cb2/css/functions.json#L18-L25
and
https://github.com/mdn/data/blob/d572bcb6dd50f3be7acc87d6203c7b740a280cb2/css/syntaxes.json#L44-L46
What did you expect to see?
only keep CSS function data in functions.json
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
note the change may cause break change though
maybe should listen to other's opinions
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Compare the CSS function entries in css/functions.json with the corresponding entries in css/syntaxes.json, starting with the examples linked in the issue. Determine which repeated data can be removed while preserving the expected data shape, and confirm that functions.json is the sole source without overlooking the breaking-change concern.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- frontend
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100