Skip to content

feat: add CssScrollBehavior, CssTextOverflow, CssAspectRatio, and CssPlaceItems#105

Merged
kevin-sakemaer merged 1 commit intomainfrom
feat/css-scroll-behavior-text-overflow-aspect-ratio-place-items
Mar 1, 2026
Merged

feat: add CssScrollBehavior, CssTextOverflow, CssAspectRatio, and CssPlaceItems#105
kevin-sakemaer merged 1 commit intomainfrom
feat/css-scroll-behavior-text-overflow-aspect-ratio-place-items

Conversation

@kevin-sakemaer
Copy link
Copy Markdown
Contributor

Summary

  • Add CssScrollBehavior sealed class for scroll-behavior with auto, smooth keywords
  • Add CssTextOverflow sealed class for text-overflow with clip, ellipsis keywords and .value() for custom strings
  • Add CssAspectRatio sealed class for aspect-ratio with auto keyword, .ratio(), and .number() constructors
  • Add CssPlaceItems sealed class for place-items shorthand with CssAlignItems align and optional CssJustifyItems justify
  • All types include standard .variable(), .raw(), and .global() escape hatches
  • Integrated into Style.typed() constructor

Closes #76, closes #77, closes #79, closes #80

Test plan

  • All 516 tests pass
  • New tests cover all keywords, constructors, escape hatches, and Style.typed integration
  • Code formatted with dart format

…PlaceItems property support

Add four new CSS property types following the established sealed class pattern:
- CssScrollBehavior: auto, smooth keywords
- CssTextOverflow: clip, ellipsis keywords plus .value() for custom strings
- CssAspectRatio: auto keyword, .ratio(), .number() constructors
- CssPlaceItems: shorthand with CssAlignItems and optional CssJustifyItems

Closes #76, closes #77, closes #79, closes #80
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kevin-sakemaer kevin-sakemaer merged commit 4131a5e into main Mar 1, 2026
10 checks passed
@kevin-sakemaer kevin-sakemaer deleted the feat/css-scroll-behavior-text-overflow-aspect-ratio-place-items branch March 1, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant