mdn / mdn/data

Proposal: Repetitive CSS function data between functions.json and syntaxes.json

Open
#811 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

idle p3
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.