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

Repetitive CSS function data between functions.json and syntaxes.json #811

Open
skyclouds2001 opened this issue Dec 2, 2024 · 0 comments
Labels
needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@skyclouds2001
Copy link
Contributor

skyclouds2001 commented Dec 2, 2024

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:

data/css/functions.json

Lines 18 to 25 in d572bcb

"attr()": {
"syntax": "attr( <attr-name> <type-or-unit>? [, <attr-fallback> ]? )",
"groups": [
"CSS Generated Content"
],
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/attr"
},

and

data/css/syntaxes.json

Lines 44 to 46 in d572bcb

"attr()": {
"syntax": "attr( <attr-name> <type-or-unit>? [, <attr-fallback> ]? )"
},

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

@skyclouds2001 skyclouds2001 added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

No branches or pull requests

1 participant