Raw .home / .post source selectors collide with WordPress body and post classes
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- PHP
- Stelle
- 29
- Fork
- 6
- Merge medio
- 3h 40m
- PR unite (30g)
- 813
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Automattic/blocks-engine
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Automattic/blocks-engine#4943 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Automattic/blocks-engine#4942 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Automattic/blocks-engine#4921 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Automattic/blocks-engine#775 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
Automattic/blocks-engine#7505 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Automattic/blocks-engine
Issue simili
-
OpenRouter errors returned in a 200 body are thrown as a plain AiExceptionForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
I maintainer di solito rispondono entro 2 giorni
-
sync-en
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
魚島清理:地圖焦點樣式、行走計時器、魚照片替代文字Apertasize:S
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
blackie0424/tao_among#184 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
bug type reconciliation
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
vimeo/psalm#14927 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno