ADR 0005 slice 5: fold style-only single-child boxes into their child
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by reading ADR 0005 (#6160) and slice 4 (#6239), then inspect the classifier and parity checks for the Wix capture. Implement the geometry-proven fold rules and add the requested table-driven contract test with one fold and one refusal per rule. Done means reporting per-route fold counts, meeting the depth and groups-per-leaf targets, and preserving desktop and mobile parity with slice 4.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Slice 5 of ADR 0005 (#6160). Depends on slice 4 (https://github.com/Automattic/blocks-engine/issues/6239).
Goal: fold single-child boxes that are load-bearing only because of their own styles into that child, proved by geometry. Once the engine owns every rule (slice 3), moving a declaration is safe, because no author selector depends on the box.
Fold rules: each applies only when the box has exactly one child, no semantics, references, interaction or motion, and the result is proved at every captured viewport:
- Own sizing (padding): the box's padding becomes the child's margin when the child is block-level, has no margin on that side, and the child's border box sits exactly inside the box's padding edge. Sizing constraints (
width,max-width,min-height) move only when the child's used size is already equal. - Paint: background, border, radius or shadow moves to the child when the child's border box equals the box's border box and the child doesn't paint on those properties.
- Containing block:
position:relativemoves to the child when every positioned descendant's offsets resolve to the same rectangle (the child's border box equals the box's). - Never fold: clipping, multi-child layout, semantic tags, transforms, filters or opacity (they create stacking contexts), or pseudo-elements that render.
Measured today (classifier on the Wix capture, structural boxes): Home 258 (109 neutral; 38 own-sizing, 21 paint, 22 containing-block). About 110 (44 neutral; 16, 10, 5). The ceiling after slice 5 is about 68 structural boxes on Home, roughly 70% fewer wrappers.
Acceptance:
- Report the fold count per rule per route, plus emitted depth and groups per leaf. The ADR targets are depth ≤ 10 and groups per leaf ≤ 1.1.
- Desktop and mobile parity against slice 4 shows no regression.
- One table-driven contract test, with one fold and one refusal per rule.
AI disclosure: written by Franklin (Claude Opus via Pi, Roadie).
- Ngôn ngữ chính
- PHP
- Star
- 28
- Fork
- 5
- Merge trung bình
- 2 giờ 59 phút
- Pull request đã merge (30 ngày)
- 942
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Automattic/blocks-engine
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Automattic/blocks-engine#6318 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Automattic/blocks-engine#4943 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Automattic/blocks-engine#4942 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Automattic/blocks-engine#4921 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Automattic/blocks-engine#775 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Automattic/blocks-engine
Issue tương tự
-
15.0
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
-
bug needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
camunda/orchestration-cluster-api-php#162 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Procedure for security issuesĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
TYPO3-Solr/ext-solr#4850 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Hex viewer drops ASCII '0' after a complete rowCó thể đã có người làm @palashranka đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 3 ngày