Skip to content

Implement typed text_transform support with enum-backed combinations#15

Merged
sbsoftware merged 1 commit intoreleases/v0.4.0from
feature/CSS-40
Feb 25, 2026
Merged

Implement typed text_transform support with enum-backed combinations#15
sbsoftware merged 1 commit intoreleases/v0.4.0from
feature/CSS-40

Conversation

@sbsoftware-agent
Copy link
Copy Markdown
Collaborator

Summary

  • Replace the text_transform string-only stub with typed property overloads in CSS::Stylesheet.
  • Add new enums for MDN-defined values:
  • CSS::Enums::TextTransform (capitalize, uppercase, lowercase, full-width, full-size-kana)
  • CSS::Enums::TextTransformMathAuto (math-auto)
  • Support single-value and multi-value typed usage:
  • single: none, math-auto, and standard transform keywords
  • pairs/triples: composable transform keywords via typed prop2/prop3 overloads

Tests

  • Added spec/text_transform_spec.cr with coverage for:
  • none
  • math-auto
  • single standard keywords
  • two-value combinations
  • three-value combinations
  • Verified with:
  • CRYSTAL_CACHE_DIR=/tmp/crystal-cache- crystal spec

@sbsoftware sbsoftware merged commit 80d8f10 into releases/v0.4.0 Feb 25, 2026
@sbsoftware sbsoftware deleted the feature/CSS-40 branch February 25, 2026 16:58
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.

2 participants