Details summary carrier receives the summary's display:list-item, pushing the marker onto its own line
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 75/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- PHP
- Stars
- 25
- Forks
- 3
- Avg merge
- 5h 32m
- Merged PRs (30d)
- 949
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Automattic/blocks-engine
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Automattic/blocks-engine#4355 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Automattic/blocks-engine#775 ·
Maintainers usually reply within 1 day
-
Shell identity: per-render ids and current-item inline style inside navigation labels split the header clusterPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 56/100
Automattic/blocks-engine#4395 ·
Maintainers usually reply within 1 day
-
Source skip link lowered to core/button in every template, duplicating core's block-theme skip linkOpen
Difficulty 4/5 3-5 days Newbie friendliness 52/100
Automattic/blocks-engine#4393 ·
Maintainers usually reply within 1 day
-
Dominant button look rejected when padding uses logical longhands, font-family is inherited, or colour has a :hover statePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 57/100
Automattic/blocks-engine#4392 ·
Maintainers usually reply within 1 day
All issues in Automattic/blocks-engine
Similar issues
-
No Code Attached Yet
Difficulty 1/5 Under an hour Newbie friendliness 90/100
joomla/joomla-cms#48786 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Icinga/icingaweb2-module-director#3188 ·
Maintainers usually reply within 4 days
-
bug ui
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
hashtopolis/server#2614 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
sync-en
Difficulty 1/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day