Skip to content

feat: add CssObjectFit, CssPointerEvents, and CssResize properties#104

Merged
kevin-sakemaer merged 1 commit intomainfrom
feat/css-object-fit-pointer-events-resize
Mar 1, 2026
Merged

feat: add CssObjectFit, CssPointerEvents, and CssResize properties#104
kevin-sakemaer merged 1 commit intomainfrom
feat/css-object-fit-pointer-events-resize

Conversation

@kevin-sakemaer
Copy link
Copy Markdown
Contributor

Summary

  • Add CssObjectFit sealed class for the object-fit property with fill, contain, cover, none, scaleDown keywords
  • Add CssPointerEvents sealed class for the pointer-events property with 10 keywords (auto, none, visiblePainted, visibleFill, visibleStroke, visible, painted, fill, stroke, all)
  • Add CssResize sealed class for the resize property with none, both, horizontal, vertical, block, inline keywords
  • All types include standard .variable(), .raw(), and .global() escape hatches
  • Integrated into Style.typed() constructor

Closes #73, closes #74, closes #75

Test plan

  • All 492 tests pass
  • New tests cover all keywords, 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:
- CssObjectFit: fill, contain, cover, none, scaleDown keywords
- CssPointerEvents: auto, none, visiblePainted, visibleFill, visibleStroke, visible, painted, fill, stroke, all keywords
- CssResize: none, both, horizontal, vertical, block, inline keywords

Closes #73, closes #74, closes #75
@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 21d6626 into main Mar 1, 2026
10 checks passed
@kevin-sakemaer kevin-sakemaer deleted the feat/css-object-fit-pointer-events-resize branch March 1, 2026 17:25
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 resize CSS property support to Style Add pointer-events CSS property support to Style Add object-fit CSS property support to Style

1 participant