Skip to content

feat: add CssContent, CssJustifyItems, and CssListStyle properties#103

Merged
kevin-sakemaer merged 3 commits intomainfrom
feat/css-content-justify-items-list-style
Mar 1, 2026
Merged

feat: add CssContent, CssJustifyItems, and CssListStyle properties#103
kevin-sakemaer merged 3 commits intomainfrom
feat/css-content-justify-items-list-style

Conversation

@kevin-sakemaer
Copy link
Copy Markdown
Contributor

Summary

  • Add CssContent sealed class for the content property with normal, none keywords and .value() for arbitrary content
  • Add CssJustifyItems sealed class for the justify-items property with 10 keywords including first baseline and last baseline
  • Add CssListStyle sealed class for the list-style shorthand with CssListStyleType and CssListStylePosition sub-types
  • All types include standard .variable(), .raw(), and .global() escape hatches
  • Integrated into Style.typed() constructor

Closes #70, closes #71, closes #72

Test plan

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

…y support

Add three new CSS property types following the established sealed class pattern:
- CssContent: normal, none keywords plus .value() for arbitrary content
- CssJustifyItems: 10 keywords including first/last baseline
- CssListStyle: shorthand with CssListStyleType and CssListStylePosition

Closes #70, closes #71, closes #72
@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 000f0ad into main Mar 1, 2026
10 checks passed
@kevin-sakemaer kevin-sakemaer deleted the feat/css-content-justify-items-list-style branch March 1, 2026 10:56
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.

Add list-style CSS property support to Style Add justify-items CSS property support to Style Add content CSS property support to Style

1 participant