Raw .home / .post source selectors collide with WordPress body and post classes
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
Hướng nghiên cứu
Start in ArtifactCompiler/WordPressCompatCss.php around line 288 and trace how navigation replay emits source class selectors. Then find the handling in SourceClassIdentity::needsMarker and check how it applies to raw .home and .post selectors. Add or update focused tests for navigation replay and post-like classes; done means both selector types use the source-class marker without affecting unrelated WordPress classes.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Found importing https://javisantana.com/ (a ~750-page static blog) with WordPress Studio CLI 2.2.0 and the Data Liberation Agent / Static Site Importer / Blocks Engine releases current on 2026-11-19, before blocks-engine#6890, #6909, #6912 and #6914 merged.
Problem (latent; no visible difference on this site)
SourceClassIdentity::needsMarker renames source classes that WordPress also puts on <body> (home, page, single, …). Two places still emit raw source selectors that collide:
-
Navigation style replay (
ArtifactCompiler/WordPressCompatCss.php, around line 288) emits raw.homeselectors. For example::root :where(.home .wp-block-navigation .wp-block-navigation-item__content){color:inherit;text-decoration:none}.home footer .wp-block-navigation …{color:var(--muted)}
On the front page
<body>has classhome, so these rules also restyle navigation blocks in header and footer template parts, not just the source<main class="home">. -
.postselectors stay raw (for example.post{max-width:var(--measure);margin:auto}).postisn't a body class, butpost_class()adds it to every Query Loop item, so any archive or listing template would pick these rules up.
Evidence
On the imported homepage, removing every body class that matches a source selector changed no element's computed style or geometry at 390 and 1440px. That's only because this site has no navigation outside <main>.
Expected
The navigation replay and post-like classes go through the same source-class marker as other colliding classes.
🤖 Generated with Claude Code
- Ngôn ngữ chính
- PHP
- Star
- 31
- Fork
- 7
- Merge trung bình
- 3 giờ 40 phút
- Pull request đã merge (30 ngày)
- 813
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 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
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
Automattic/blocks-engine#7505 ·
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ự
-
OpenRouter errors returned in a 200 body are thrown as a plain AiExceptionCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
freescout-help-desk/freescout#5844 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
sync-en
Độ 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 1 ngày
-
sync-en
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Перевод устарел
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày