Skip to content

Commit

Permalink
(css) add all properties listed on MDN (#4073)
Browse files Browse the repository at this point in the history
* Add CSS properties

Add all missing properties listed in the navigation sidebar of MDN at https://developer.mozilla.org/en-US/docs/Web/CSS/Reference

* Sort CSS properties

---

For future reference, an easy way to get the list directly from MDN is using the following snippet in devtools on any CSS page (e.g. the reference page):

```
$$('a', $x('//*[@id="sidebar-quicklinks"]//summary[text() = "Properties"]/..')[0]).map(link => link.textContent).filter(prop => !prop.startsWith('-'))
```

This extracts the links from the "Properties" section of the sidebar, while excluding the -moz- and -webkit- prefixed properties. These do not however list SVG presentation attributes, so it is important to not replace the existing list, but rather to get their union (for example with [...new Set(currentArray.concat(valuesFromMDN))]).
  • Loading branch information
BaliBalo authored Jul 7, 2024
1 parent 33eb3d9 commit eddcfb3
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 16 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ CAVEATS / POTENTIALLY BREAKING CHANGES
Core Grammars:

- fix(makefile) - allow strings inside `$()` expressions [aneesh98][]
- enh(css) add all properties listed on MDN (96 additions including `anchor-name`, `aspect-ratio`, `backdrop-filter`, `container`, `margin-trim`, `place-content`, `scroll-timeline`, ...) [BaliBalo][]

New Grammars:

Expand All @@ -25,6 +26,7 @@ CONTRIBUTORS

[Josh Goebel]: https://github.com/joshgoebel
[aneesh98]: https://github.com/aneesh98
[BaliBalo]: https://github.com/BaliBalo


## Version 11.10.0
Expand Down
Loading

0 comments on commit eddcfb3

Please sign in to comment.