Skip to content

Add box-sizing CSS property support#102

Merged
kevin-sakemaer merged 1 commit intomainfrom
feat/css-box-sizing-property
Mar 1, 2026
Merged

Add box-sizing CSS property support#102
kevin-sakemaer merged 1 commit intomainfrom
feat/css-box-sizing-property

Conversation

@kevin-sakemaer
Copy link
Copy Markdown
Contributor

Summary

  • Added CssBoxSizing sealed class with .contentBox and .borderBox keywords, plus .variable(), .raw(), and .global() escape hatches
  • Added boxSizing named parameter to Style.typed()
  • Added barrel export in css_types.dart

Closes #69

Test plan

  • Keywords output correct CSS (content-box, border-box)
  • Variable outputs var(--name) syntax
  • Raw outputs value as-is
  • Global outputs inherit/initial/unset/revert
  • Style.typed integration produces correct CSS declaration

@kevin-sakemaer kevin-sakemaer merged commit fc0bb6c into main Mar 1, 2026
9 checks passed
@kevin-sakemaer kevin-sakemaer deleted the feat/css-box-sizing-property branch March 1, 2026 10:43
@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!

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 box-sizing CSS property support to Style

1 participant