Skip to content

[Feature][Starlight] Add Compose-aligned Box layout support - #8820

Merged
jianliang00 merged 1 commit into
developfrom
shadow/p/givemefive9/starlight_box_layout
Aug 27, 2026
Merged

[Feature][Starlight] Add Compose-aligned Box layout support#8820
jianliang00 merged 1 commit into
developfrom
shadow/p/givemefive9/starlight_box_layout

Conversation

@givemefive9

Copy link
Copy Markdown
Collaborator

No description provided.

@jianliang00
jianliang00 force-pushed the shadow/p/givemefive9/starlight_box_layout branch 4 times, most recently from 17f1b3b to 1eabe1c Compare August 27, 2026 03:17
- Add "display: -x-box" parsing, generated CSS types, and Starlight layout selection.
- Stack in-flow children in one content box with automatic sizing and per-item alignment, including negative offsets for oversized children.
- Expose "-x-box-propagate-min-constraints" and "-x-box-match-parent-size" as layout-only CSS properties instead of layout-node attributes.
- Defer match-parent children until the Box size is resolved and propagate effective minimum constraints before child measurement.
- Keep Box-specific setters outside the shared layout-property macro so sibling runtimes do not require unsupported Box properties.
- Add regression coverage for display parsing, alignment, sizing, minimum propagation, match-parent behavior, cache toggling, and RTL oversized alignment.
- Publish the prefixed Box display value and properties through public type packages starting from Lynx 4.2.

TEST: CSS parser, Starlight layout, and Box test objects compile; JSON, formatting, and public keyword checks pass. The full test binary is blocked by an unrelated existing compile error.
@jianliang00
jianliang00 force-pushed the shadow/p/givemefive9/starlight_box_layout branch from 1eabe1c to 05f2a78 Compare August 27, 2026 10:06
@jianliang00
jianliang00 merged commit 5ab1009 into develop Aug 27, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants