Skip to content

feat: add CssContain, CssWillChange, CssTouchAction, CssUserSelect, CssHyphens#107

Merged
kevin-sakemaer merged 2 commits intomainfrom
feat/css-contain-will-change-touch-action-user-select-hyphens
Mar 1, 2026
Merged

feat: add CssContain, CssWillChange, CssTouchAction, CssUserSelect, CssHyphens#107
kevin-sakemaer merged 2 commits intomainfrom
feat/css-contain-will-change-touch-action-user-select-hyphens

Conversation

@kevin-sakemaer
Copy link
Copy Markdown
Contributor

@kevin-sakemaer kevin-sakemaer commented Mar 1, 2026

Summary

  • Add CssContain sealed class for contain property with keyword shortcuts (none, strict, content), individual keywords (size, layout, style, paint), and .flags() factory for composing containment values
  • Add CssWillChange sealed class for will-change property with auto, scrollPosition, contents keywords and .properties() factory for CSS property names
  • Add CssTouchAction sealed class for touch-action property with standalone keywords (auto, none, manipulation), combinable keywords (panX, panLeft, panRight, panY, panUp, panDown, pinchZoom), and .combine() factory
  • Add CssUserSelect sealed class for user-select property with none, auto, text, all, contain keywords\n- Add CssHyphens sealed class for hyphens property with none, manual, auto keywords
  • All classes include .variable(), .raw(), and .global() escape hatches
  • All integrated into Style.typed constructor\n- 100% test coverage on new code

Closes #86, closes #87, closes #88, closes #89, closes #90

Test plan

  • All 581 tests pass
  • New test files cover keywords, variable, raw, all 5 globals, and Style.typed integration for each property
  • dart format applied
  • Coverage verified (100% on new code)

@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 aadca7e into main Mar 1, 2026
10 checks passed
@kevin-sakemaer kevin-sakemaer deleted the feat/css-contain-will-change-touch-action-user-select-hyphens branch March 1, 2026 18:19
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