|
46 | 46 | - **Phase 4 – Alignment & Template Features** |
47 | 47 | - Add `justify-content`, `align-content`, `justify-items`, `align-items`, per-item overrides, and template serialization (`grid-template-rows/columns`). |
48 | 48 | - Extend parsing for `repeat()`, `minmax()`, and named lines/areas if planned for MVP. |
| 49 | + - Status: per-item alignment plus `place-*` shorthands now have widget + integration coverage, and `grid-auto-flow: row|column dense` behavior is verified through layout assertions. |
49 | 50 | - Tests: alignment-focused widget suites, computed-style integration checks. |
50 | 51 |
|
51 | 52 | - **Phase 5 – Hardening & Docs** |
|
67 | 68 | - **Docs & Communication:** Keep `dev_css_grid_process.md` and CSS_GRID_PLAN.md updated; highlight new capabilities in release notes when features stabilize. |
68 | 69 |
|
69 | 70 | **Next Steps** |
70 | | -Computed-style serialization + tests for grid templates/placements are now in tree (see `grid_computed_style_test.dart` and `css-grid/computed-style.ts`). Upcoming focus areas: |
| 71 | +Track sizing/placement for MVP grids now ships with widget + integration coverage, and per-item alignment plumbing is partially in-tree. Upcoming focus areas: |
71 | 72 |
|
72 | | -1. Continue Phase 3 track sizing/placement: add implicit rows + column-flow growth, improve gap accounting, and honor fr/percentage mixes for auto tracks. |
73 | | -2. Add alignment/template serialization refinements plus docs as features land. |
74 | | -3. Capture layout/perf findings in `dev_css_grid_process.md` alongside new coverage as features flip on. |
| 73 | +1. Begin Phase 5 hardening by profiling `RenderGridLayout` hot paths (auto-placement + track resolution), enumerating slow cases, and sketching caching/intrinsic sizing fixes. |
| 74 | +2. Implement the `grid` shorthand property (per MDN / CSS Grid 1) as a thin layer over existing longhands (`grid-template-*`, `grid-auto-*`), covering the common `none`, template, and auto-flow forms and deferring subgrid/masonry keywords per non-goals. |
| 75 | +3. Add a basic `grid-template` shorthand (rows/columns/areas) parser to align with authors’ expectations for shorthand usage while still delegating storage to existing typed fields. |
| 76 | +4. Expand track-size parsing to gracefully ignore unsupported keywords like `min-content`/`max-content` in grid track lists (where they are not yet wired into layout), and document the current support level in `dev_css_grid_process.md`. |
| 77 | +5. Stress-test grid layouts inside representative app flows (dashboard, list virtualization) to validate performance/behavioral stability before GA. |
| 78 | +6. Flip on `DebugFlags.enableCssGridProfiling` during perf sessions to capture per-grid timing for materialization, placement, and child layout. |
| 79 | +7. Continue filling integration matrix: template-area happy-path + auto-fit/place-content + template-area overlap/unknown-area cases landed; next targets are shorthand-centric specs (e.g., `grid` / `grid-template`) and dense auto-fill dashboards with per-item overrides. |
75 | 80 |
|
76 | 81 | **TODOs** |
77 | 82 | - [x] Capture overview/goals/scope plus risks and rollout strategy. |
78 | | -- [ ] Land Phase 1 plumbing (display enum, CSSGridMixin, shorthand parsing, auxiliary helpers). |
79 | | -- [ ] Add Phase 1 widget + integration tests (parsing/computed style) and wire to spec group. |
| 83 | +- [x] Land Phase 1 plumbing (display enum, CSSGridMixin, shorthand parsing, auxiliary helpers). |
| 84 | +- [x] Add Phase 1 widget + integration tests (parsing/computed style) and wire to spec group. |
80 | 85 | - [x] Implement `RenderGridLayout` skeleton and hook creation paths. |
81 | | -- [ ] Implement full track sizing/placement (Phase 3) with tests. |
82 | | -- [ ] Extend alignment/template features (Phase 4) with serialization and coverage. |
| 86 | +- [x] Implement full track sizing/placement (Phase 3) with tests. |
| 87 | +- [x] Extend alignment/template features (Phase 4) with serialization and coverage (per-item alignment + computed styles partially landed). |
83 | 88 | - [x] Complete computed-style serialization and integration specs for grid properties. |
84 | 89 | - [ ] Profile and harden grid layout (Phase 5), updating docs/examples. |
| 90 | +- [ ] Add `grid` and `grid-template` shorthands on top of existing longhands, with focused integration specs under `integration_tests/specs/css/css-grid`. |
0 commit comments