Skip to content

css_ast: Implement relative color syntax - #1119

Merged
keithamus merged 1 commit into
mainfrom
css-ast-implement-relative-color-syntax
May 17, 2026
Merged

css_ast: Implement relative color syntax#1119
keithamus merged 1 commit into
mainfrom
css-ast-implement-relative-color-syntax

Conversation

@keithamus

Copy link
Copy Markdown
Member

This change add parsing for CSS relative color syntax ('from ' prefix)
across all color function types: rgb/rgba, hsl/hsla, hwb, lab/oklab, lch/oklch.
In addition, resolution to chromashift::Color which allows for minification
where possible.

This change add parsing for CSS relative color syntax ('from <color>' prefix)
across all color function types: rgb/rgba, hsl/hsla, hwb, lab/oklab, lch/oklch.
In addition, resolution to chromashift::Color which allows for minification
where possible.
@keithamus
keithamus enabled auto-merge (squash) May 17, 2026 09:25

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All CI jobs have passed. Approving.

@keithamus
keithamus merged commit 6f50931 into main May 17, 2026
17 checks passed
@keithamus
keithamus deleted the css-ast-implement-relative-color-syntax branch May 17, 2026 09:32
github-actions Bot pushed a commit that referenced this pull request May 18, 2026
## [0.0.23] - 2026-05-18

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))

[forcebuild]
@keithamus keithamus mentioned this pull request May 18, 2026
github-actions Bot pushed a commit that referenced this pull request May 18, 2026
## [0.0.23] - 2026-05-18

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))
github-actions Bot pushed a commit that referenced this pull request May 18, 2026
## [0.0.23] - 2026-05-18

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))
- chore(deps): update dependency @types/vscode to v1.120.0 (#1125) ([#1125](#1125))

[forcebuild]
github-actions Bot pushed a commit that referenced this pull request May 18, 2026
## [0.0.23] - 2026-05-18

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))
- chore(deps): update dependency @types/vscode to v1.120.0 (#1125) ([#1125](#1125))
github-actions Bot pushed a commit that referenced this pull request May 20, 2026
## [0.0.23] - 2026-05-20

### Other Changes
- Coverage: update css-minify-tests (#1133) ([#1133](#1133))

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))
- css_ast: add pinch-zoom to touch-action (#1128) ([#1128](#1128))
- css_ast/csskit: Finish off ToSpecificity, add `csskit specificity` command (#1129) ([#1129](#1129))
- css_ast: Box all Gradient types (#1130) ([#1130](#1130))
- css_ast: Implement Background property (#1131) ([#1131](#1131))
- css_ast: Implement SpreadShadow, improve Shadow (#1132) ([#1132](#1132))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))
- chore(deps): update dependency @types/vscode to v1.120.0 (#1125) ([#1125](#1125))

[forcebuild]
github-actions Bot pushed a commit that referenced this pull request May 20, 2026
## [0.0.23] - 2026-05-20

### Other Changes
- Coverage: update css-minify-tests (#1133) ([#1133](#1133))

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))
- css_ast: add pinch-zoom to touch-action (#1128) ([#1128](#1128))
- css_ast/csskit: Finish off ToSpecificity, add `csskit specificity` command (#1129) ([#1129](#1129))
- css_ast: Box all Gradient types (#1130) ([#1130](#1130))
- css_ast: Implement Background property (#1131) ([#1131](#1131))
- css_ast: Implement SpreadShadow, improve Shadow (#1132) ([#1132](#1132))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))
- chore(deps): update dependency @types/vscode to v1.120.0 (#1125) ([#1125](#1125))
github-actions Bot pushed a commit that referenced this pull request May 21, 2026
## [0.0.23] - 2026-05-21

### Other Changes
- Coverage: update css-minify-tests (#1133) ([#1133](#1133))

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))
- css_ast: add pinch-zoom to touch-action (#1128) ([#1128](#1128))
- css_ast/csskit: Finish off ToSpecificity, add `csskit specificity` command (#1129) ([#1129](#1129))
- css_ast: Box all Gradient types (#1130) ([#1130](#1130))
- css_ast: Implement Background property (#1131) ([#1131](#1131))
- css_ast: Implement SpreadShadow, improve Shadow (#1132) ([#1132](#1132))
- css_ast: Implement text-overflow (#1134) ([#1134](#1134))
- css_ast: Implement more legacy/vendor display values (#1135) ([#1135](#1135))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))
- chore(deps): update dependency @types/vscode to v1.120.0 (#1125) ([#1125](#1125))

[forcebuild]
github-actions Bot pushed a commit that referenced this pull request May 21, 2026
## [0.0.23] - 2026-05-21

### Other Changes
- Coverage: update css-minify-tests (#1133) ([#1133](#1133))

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))
- css_ast: add pinch-zoom to touch-action (#1128) ([#1128](#1128))
- css_ast/csskit: Finish off ToSpecificity, add `csskit specificity` command (#1129) ([#1129](#1129))
- css_ast: Box all Gradient types (#1130) ([#1130](#1130))
- css_ast: Implement Background property (#1131) ([#1131](#1131))
- css_ast: Implement SpreadShadow, improve Shadow (#1132) ([#1132](#1132))
- css_ast: Implement text-overflow (#1134) ([#1134](#1134))
- css_ast: Implement more legacy/vendor display values (#1135) ([#1135](#1135))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))
- chore(deps): update dependency @types/vscode to v1.120.0 (#1125) ([#1125](#1125))
github-actions Bot pushed a commit that referenced this pull request May 22, 2026
## [0.0.23] - 2026-05-22

### Other Changes
- Coverage: update css-minify-tests (#1133) ([#1133](#1133))

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))
- css_ast: add pinch-zoom to touch-action (#1128) ([#1128](#1128))
- css_ast/csskit: Finish off ToSpecificity, add `csskit specificity` command (#1129) ([#1129](#1129))
- css_ast: Box all Gradient types (#1130) ([#1130](#1130))
- css_ast: Implement Background property (#1131) ([#1131](#1131))
- css_ast: Implement SpreadShadow, improve Shadow (#1132) ([#1132](#1132))
- css_ast: Implement text-overflow (#1134) ([#1134](#1134))
- css_ast: Implement more legacy/vendor display values (#1135) ([#1135](#1135))
- css_ast: Implement light-dark for color values (#1136) ([#1136](#1136))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_spec_generator
- csskit_spec_generator: Replace non-breaking spaces with whitespace (#1137) ([#1137](#1137))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))
- chore(deps): update dependency @types/vscode to v1.120.0 (#1125) ([#1125](#1125))

[forcebuild]
github-actions Bot pushed a commit that referenced this pull request May 22, 2026
## [0.0.23] - 2026-05-22

### Other Changes
- Coverage: update css-minify-tests (#1133) ([#1133](#1133))

### Css_ast
- fix(css_parse): preserve whitespace around +/- in calc() (#1114) ([#1114](#1114))
- coverage: drop bootstrap/foundation .min files (#1117) ([#1117](#1117))
- css_ast: Implement relative color syntax (#1119) ([#1119](#1119))
- Regenerate css_ast/src/values from csswg drafts (#1120) ([#1120](#1120))
- csskit_spec_generator/css_ast: Generate properties from SVG, PointerEvents specs (#1121) ([#1121](#1121))
- css_ast: Implement ContentStyleValue (#1122) ([#1122](#1122))
- Regenerate css_ast/src/values from csswg drafts (#1123) ([#1123](#1123))
- css_ast: add pinch-zoom to touch-action (#1128) ([#1128](#1128))
- css_ast/csskit: Finish off ToSpecificity, add `csskit specificity` command (#1129) ([#1129](#1129))
- css_ast: Box all Gradient types (#1130) ([#1130](#1130))
- css_ast: Implement Background property (#1131) ([#1131](#1131))
- css_ast: Implement SpreadShadow, improve Shadow (#1132) ([#1132](#1132))
- css_ast: Implement text-overflow (#1134) ([#1134](#1134))
- css_ast: Implement more legacy/vendor display values (#1135) ([#1135](#1135))
- css_ast: Implement light-dark for color values (#1136) ([#1136](#1136))

### Css_lexer
- css_parse: refactor CursorCompactWriteSink, preserve comments between idents (#1118) ([#1118](#1118))

### Csskit
- chore(deps): update dependencies (patch) (#1124) ([#1124](#1124))

### Csskit_spec_generator
- csskit_spec_generator: Replace non-breaking spaces with whitespace (#1137) ([#1137](#1137))

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.64.0 (#1127) ([#1127](#1127))
- chore(deps): update dependency @types/vscode to v1.120.0 (#1125) ([#1125](#1125))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant