Code sample should use @property rule instead of JavaScript
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- css, javascript, markdown
- Domain
- documentation
Research direction
The sample lives in files/en-us/web/api/css_properties_and_values_api/guide/index.md in the mdn/content repository, under the section 'Using registered custom properties'. Find the JavaScript CSS.registerProperty() snippet there and replace it with an equivalent @property rule block, keeping the surrounding prose consistent. Done when the page shows the @property version and the explanatory text still matches the code.
Written by the indexing model from the issue text.
Description
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/CSS_Properties_and_Values_API/guide
What specific section or headline is this issue about?
Using registered custom properties
What information was incorrect, unhelpful, or incomplete?
The sample uses JavaScript to register the property. I think it would be more appropriate to use the @property rule.
What did you expect to see?
I had expected this section to use the @property rule to register the property.
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
I’m happy to make changes myself if it’s appropriate.
MDN metadata
Page report details
- Folder:
en-us/web/api/css_properties_and_values_api/guide - MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/CSS_Properties_and_Values_API/guide
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/api/css_properties_and_values_api/guide/index.md
- Last commit: https://github.com/mdn/content/commit/98bbdcd90e5487539cebe19b12fe3d731fb5a03e
- Document last modified: 2026-02-02T17:31:33.000Z
- Dominant language
- Markdown
- Stars
- 11.2k
- Forks
- 23.3k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 173
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from mdn/content
-
Content:JS needs triage
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Content:JS good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
mdn/content#46630 · 1 comment ·
Maintainers usually reply within 1 day
-
cancel event not firing when reselecting previously selected fileMay be free again A pull request for this issue was closed without being merged. OpenContent:HTML
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mdn/content#46622 · 1 comment ·
Maintainers usually reply within 1 day
-
Add the message_serialization manifest key page and update the data cloning algorithm sectionPossibly taken @xeenon claimed this 4 days ago. OpenContent:WebExt needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
CSS Custom Highlight API: mention StaticRange for highlights that outlive DOM changesPossibly taken @abdul-karim-mia claimed this 8 days ago. OpenContent:WebAPI help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
Similar issues
-
marketing
Difficulty 2/5 Half a day Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
pydanty:is-working
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
pydantic/pydantic-ai#14187 ·
Maintainers usually reply within 1 day
-
bug P3
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
documentation good first issue priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
TMHSDigital/steam-mcp#95 ·
-
wpvc
Difficulty 1/5 1-3 hours Newbie friendliness 62/100