Skip to content

Add max-width and max-height caps for LTML widgets#104

Merged
rowland merged 1 commit into
masterfrom
max-width-height
May 10, 2026
Merged

Add max-width and max-height caps for LTML widgets#104
rowland merged 1 commit into
masterfrom
max-width-height

Conversation

@rowland
Copy link
Copy Markdown
Owner

@rowland rowland commented May 10, 2026

Summary

  • Add max-width and max-height support to LTML dimensions and widget APIs with compact in-struct storage.
  • Fit <image>, <svg>, and <draw> content inside caps while preserving aspect ratio.
  • Surface page overflow no-progress cases as explicit layout errors instead of failing silently.
  • Update LTML docs, tests, and affected sample goldens.

Testing

  • Added unit coverage for max-dimension parsing, setters, and layout resolution.
  • Added regression tests for capped image, SVG, and canvas placement, plus table overflow behavior.
  • Ran go test ./ltml and go test ./...; both passed. Sampling was also regenerated to confirm the new rendering behavior.

@rowland rowland merged commit a18f52a into master May 10, 2026
2 checks passed
@rowland rowland deleted the max-width-height branch May 10, 2026 19:03
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.

1 participant