Skip to content

Commit

Permalink
enh(css) add several new CSS Properties (#4007)
Browse files Browse the repository at this point in the history
Adds:

accent-color
appearance
color-scheme
rotate
scale
translate
  • Loading branch information
carlrafting committed Mar 19, 2024
1 parent 1a96027 commit ca77d5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Core Grammars:
- fix(go) fix go number literals to accept `_` separators, add hex p exponents [Lisa Ugray][]
- enh(markdown) add entity support [David Schach][] [TaraLei][]
- enh(css) add `justify-items` and `justify-self` attributes [Vasily Polovnyov][]
- enh(css) add `accent-color`, `appearance`, `color-scheme`, `rotate`, `scale` and `translate` attributes [Carl Räfting][]

New Grammars:

Expand Down Expand Up @@ -75,6 +76,7 @@ Themes:
[Vasily Polovnyov]: https://github.com/vast
[Arman Uguray]: https://github.com/armansito
[Rúnar Bjarnason]: https://github.com/runarorama
[Carl Räfting]: https://github.com/carlrafting


## Version 11.9.0
Expand Down
6 changes: 6 additions & 0 deletions src/languages/lib/css-shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ export const PSEUDO_ELEMENTS = [
].sort().reverse();

export const ATTRIBUTES = [
'accent-color',
'align-content',
'align-items',
'align-self',
Expand All @@ -303,6 +304,7 @@ export const ATTRIBUTES = [
'animation-name',
'animation-play-state',
'animation-timing-function',
'appearance',
'backface-visibility',
'background',
'background-attachment',
Expand Down Expand Up @@ -393,6 +395,7 @@ export const ATTRIBUTES = [
'color-interpolation-filters',
'color-profile',
'color-rendering',
'color-scheme',
'column-count',
'column-fill',
'column-gap',
Expand Down Expand Up @@ -586,7 +589,9 @@ export const ATTRIBUTES = [
'rest-after',
'rest-before',
'right',
'rotate',
'row-gap',
'scale',
'scroll-margin',
'scroll-margin-block',
'scroll-margin-block-end',
Expand Down Expand Up @@ -665,6 +670,7 @@ export const ATTRIBUTES = [
'transition-duration',
'transition-property',
'transition-timing-function',
'translate',
'unicode-bidi',
'vector-effect',
'vertical-align',
Expand Down

0 comments on commit ca77d5b

Please sign in to comment.