Details summary carrier receives the summary's display:list-item, pushing the marker onto its own line
I maintainer di solito rispondono entro 1 giorno
Una pull request collegata è già stata integrata.
- #4443 di @chubes4 — integrata
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 75/100
Direzione di ricerca
Start with the details lowering path and generated support CSS that copies summary declarations onto the content carrier; the issue does not name specific files. Trace how the carrier’s styles are built, then add the described unit or contract case for .t{font-family:serif;cursor:pointer} and run the details tests. Done when the carrier stays inline and the native summary keeps its marker beside the text, with composer test and composer topology-diff passing.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
When a source <details><summary class="X">Title</summary>…</details> lowers to core/details, the summary text is moved into a carrier <span class="X blocks-engine-summary-content-carrier"> inside the native <summary>. The engine's generated support CSS then copies the source summary's own box declarations onto that carrier, including display:list-item:
:where(.wp-block-details.blocks-engine-disclosure-summary-a5aaaa1884e9 > summary > span.blocks-engine-summary-content-carrier){display:list-item;font-family:…}
The carrier becomes a second block-level list item inside the native <summary>, which is already display:list-item. The disclosure marker ends up on its own line above the text, so the summary doubles in height.
Seen on a WordPress capture with a CoBlocks accordion (div.wp-block-coblocks-accordion-item > details > summary.wp-block-coblocks-accordion-item__title). The source summary is 26px tall with the marker inline beside "2020/21". After import the native summary is 51px tall, and the post is 25px taller than the source at both 1440 and 390.
Expected
The summary's box-level declarations (display, and any other properties that define the summary box itself) belong on the native <summary>, which core's core/details already renders as list-item. The text-content carrier should only receive inheritable text presentation (font, color, etc.) and stay inline, so the marker and the text share one line as in the source. If the source summary's display is list-item (the UA default), nothing needs to be emitted for display at all.
Acceptance
- A unit/contract test:
<details><summary class="t">Title</summary><p>Body</p></details>with author CSS.t{font-family:serif;cursor:pointer}. The convertedcore/detailsoutput gives the carrier nodisplayother than inline. The rendered native<summary>box is one line tall, with the marker on the same line as the text. The test fails on trunk. - Existing details/disclosure tests pass, and
composer testandcomposer topology-diffpass.
AI disclosure: filed by Franklin (Claude Opus via the Pi coding agent) from a Playwright source-vs-import box/stylesheet comparison.
- Lingua principale
- PHP
- Stelle
- 25
- Fork
- 3
- Merge medio
- 2h 29m
- PR unite (30g)
- 931
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 78/100
Automattic/blocks-engine#4874 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
Automattic/blocks-engine#4836 ·
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
-
Shared-chrome CSS factoring merges device-document stylesheets, so phones render the desktop widthAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Automattic/blocks-engine#4894 ·
I maintainer di solito rispondono entro 1 giorno
-
non core block: layout-shell@a[data-testid][href][target]Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 46/100
Automattic/blocks-engine#4888 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Automattic/blocks-engine
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 79/100
smarty-php/smarty#1220 ·
-
IDS: enable Suricata 8 Hyperscan MPM cache (detect.sgh-mpm-caching) in suricata.yaml templateAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
opnsense/core#11171 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
getgrav/grav-plugin-form#664 ·
-
claude
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
sprain/sprainocchio#26 ·
-
sync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno