Skip to content

CSS Grid 1/9: Grid style types and public API#1893

Open
intergalacticspacehighway wants to merge 1 commit intofacebook:mainfrom
intergalacticspacehighway:css-grid-1-api
Open

CSS Grid 1/9: Grid style types and public API#1893
intergalacticspacehighway wants to merge 1 commit intofacebook:mainfrom
intergalacticspacehighway:css-grid-1-api

Conversation

@intergalacticspacehighway
Copy link
Contributor

Summary

  • Add foundational data types, enums, style properties, and C API for expressing CSS Grid layouts
  • Includes GridLine.h, GridTrack.h, GridTrackType.h, Display::Grid, new alignment enums (Align::Start/End, Justify::Auto/Stretch/Start/End)
  • C API: YGGridTrackList.h/cpp, YGNodeStyle grid setters/getters
  • Layout helper updates, Node.h relativePosition made public

Split from #1865. Part of the CSS Grid implementation series.

Summary:
Add the foundational data types, enums, style properties, and C API for
expressing CSS Grid layouts in Yoga.

Includes:
- Grid style types (GridLine.h, GridTrack.h, GridTrackType.h)
- Updated enums (Display::Grid, Align::Start/End, Justify::Auto/Stretch/Start/End)
- Grid event (LayoutPassReason::kGridLayout)
- Style property accessors and member variables
- Public C API (YGGridTrackList.h/cpp, YGNodeStyle grid setters/getters)
- Layout helpers updated for new enum values (Align.h, AbsoluteLayout.cpp,
  CalculateLayout.cpp/h partial)
- Node.h: relativePosition made public
- React Native mirror of all C++ changes

Differential Revision: D93946262
@vercel
Copy link

vercel bot commented Feb 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
yoga-website Ready Ready Preview, Comment Feb 25, 2026 9:32pm

Request Review

@meta-cla meta-cla bot added the CLA Signed label Feb 25, 2026
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants