Skip to content

css_ast: Add NormalOr<> generic.#861

Merged
keithamus merged 1 commit intomainfrom
css-ast-add-normalor-generic
Feb 3, 2026
Merged

css_ast: Add NormalOr<> generic.#861
keithamus merged 1 commit intomainfrom
css-ast-add-normalor-generic

Conversation

@keithamus
Copy link
Copy Markdown
Member

AlignSelfStyleValue recently changed syntax to allow the normal keyword, or
self-position. This caused us to have to comment this out in #851. So this is
obviously something we need to fix.

Turns out normal is a common keyword just like auto and none, which feels
like enough of a motivation to get its own wrapper type akin to those. So this
change introduces a new NormalOr<> generic to allow parsing of align-self
again. While we're here, we also uncomment ItemPackStyleValue and
TextBoxStyleValue as they're trivial to uncomment with this new generic.

AlignSelfStyleValue recently changed syntax to allow the `normal` keyword, or
self-position. This caused us to have to comment this out in #851. So this is
obviously something we need to fix.

Turns out `normal` is a common keyword just like `auto` and `none`, which feels
like enough of a motivation to get its own wrapper type akin to those. So this
change introduces a new `NormalOr<>` generic to allow parsing of align-self
again. While we're here, we also uncomment `ItemPackStyleValue` and
`TextBoxStyleValue` as they're trivial to uncomment with this new generic.
@keithamus keithamus enabled auto-merge (squash) February 3, 2026 22:25
Copy link
Copy Markdown

@github-actions github-actions bot left a comment

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 8be9253 into main Feb 3, 2026
16 of 17 checks passed
@keithamus keithamus deleted the css-ast-add-normalor-generic branch February 3, 2026 22:30
keithamus added a commit that referenced this pull request Feb 3, 2026
…tyleValue

These two types leverage the new `NormalOr<>` generic type added in #861, plus a
couple of new types which are simple enough to implement.
keithamus added a commit that referenced this pull request Feb 3, 2026
…tyleValue (#862)

These two types leverage the new `NormalOr<>` generic type added in
#861, plus a
couple of new types which are simple enough to implement.
github-actions bot pushed a commit that referenced this pull request Feb 4, 2026
## [0.0.17] - 2026-02-04

### Css_ast
- css_ast: Uncomment FlexStyleValue (#860) ([#860](#860))
- Regenerate css_ast/src/values from csswg drafts (#851) ([#851](#851))
- css_ast: Add NormalOr<> generic. (#861) ([#861](#861))
- css_ast: Enable FontFeatureSettingsStyleValue, FontVariationSettingsStyleValue (#862) ([#862](#862))

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

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

[forcebuild]
@keithamus keithamus mentioned this pull request Feb 4, 2026
github-actions bot pushed a commit that referenced this pull request Feb 4, 2026
## [0.0.17] - 2026-02-04

### Css_ast
- css_ast: Uncomment FlexStyleValue (#860) ([#860](#860))
- Regenerate css_ast/src/values from csswg drafts (#851) ([#851](#851))
- css_ast: Add NormalOr<> generic. (#861) ([#861](#861))
- css_ast: Enable FontFeatureSettingsStyleValue, FontVariationSettingsStyleValue (#862) ([#862](#862))

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

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.42.0 (#855) ([#855](#855))
github-actions bot pushed a commit that referenced this pull request Feb 9, 2026
## [0.0.17] - 2026-02-09

### Css_ast
- css_ast: Uncomment FlexStyleValue (#860) ([#860](#860))
- Regenerate css_ast/src/values from csswg drafts (#851) ([#851](#851))
- css_ast: Add NormalOr<> generic. (#861) ([#861](#861))
- css_ast: Enable FontFeatureSettingsStyleValue, FontVariationSettingsStyleValue (#862) ([#862](#862))

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

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.42.0 (#855) ([#855](#855))
- chore(deps): update dependencies (patch) (#864) ([#864](#864))
- chore(deps): update dependency oxlint to v1.43.0 (#867) ([#867](#867))
- chore(deps): update dependency @types/vscode to v1.109.0 (#865) ([#865](#865))

[forcebuild]
github-actions bot pushed a commit that referenced this pull request Feb 9, 2026
## [0.0.17] - 2026-02-09

### Css_ast
- css_ast: Uncomment FlexStyleValue (#860) ([#860](#860))
- Regenerate css_ast/src/values from csswg drafts (#851) ([#851](#851))
- css_ast: Add NormalOr<> generic. (#861) ([#861](#861))
- css_ast: Enable FontFeatureSettingsStyleValue, FontVariationSettingsStyleValue (#862) ([#862](#862))

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

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.42.0 (#855) ([#855](#855))
- chore(deps): update dependencies (patch) (#864) ([#864](#864))
- chore(deps): update dependency oxlint to v1.43.0 (#867) ([#867](#867))
- chore(deps): update dependency @types/vscode to v1.109.0 (#865) ([#865](#865))
github-actions bot pushed a commit that referenced this pull request Feb 11, 2026
## [0.0.17] - 2026-02-11

### Css_ast
- css_ast: Uncomment FlexStyleValue (#860) ([#860](#860))
- Regenerate css_ast/src/values from csswg drafts (#851) ([#851](#851))
- css_ast: Add NormalOr<> generic. (#861) ([#861](#861))
- css_ast: Enable FontFeatureSettingsStyleValue, FontVariationSettingsStyleValue (#862) ([#862](#862))
- css_ast: Fixup container queries (#874) ([#874](#874))
- css_ast: Support custom scroll state queries (#873) ([#873](#873))
- Regenerate css_ast/src/values from csswg drafts (#863) ([#863](#863))

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

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.42.0 (#855) ([#855](#855))
- chore(deps): update dependencies (patch) (#864) ([#864](#864))
- chore(deps): update dependency oxlint to v1.43.0 (#867) ([#867](#867))
- chore(deps): update dependency @types/vscode to v1.109.0 (#865) ([#865](#865))

[forcebuild]
github-actions bot pushed a commit that referenced this pull request Feb 11, 2026
## [0.0.17] - 2026-02-11

### Css_ast
- css_ast: Uncomment FlexStyleValue (#860) ([#860](#860))
- Regenerate css_ast/src/values from csswg drafts (#851) ([#851](#851))
- css_ast: Add NormalOr<> generic. (#861) ([#861](#861))
- css_ast: Enable FontFeatureSettingsStyleValue, FontVariationSettingsStyleValue (#862) ([#862](#862))
- css_ast: Fixup container queries (#874) ([#874](#874))
- css_ast: Support custom scroll state queries (#873) ([#873](#873))
- Regenerate css_ast/src/values from csswg drafts (#863) ([#863](#863))

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

### Csskit_vscode
- chore(deps): update dependency oxlint to v1.42.0 (#855) ([#855](#855))
- chore(deps): update dependencies (patch) (#864) ([#864](#864))
- chore(deps): update dependency oxlint to v1.43.0 (#867) ([#867](#867))
- chore(deps): update dependency @types/vscode to v1.109.0 (#865) ([#865](#865))
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