Opened 3 weeks ago
Closed 2 weeks ago
#63615 closed defect (bug) (duplicate)
Twenty Twenty: Inline image in paragraph renders as block on frontend
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | |
Focuses: | ui, css | Cc: |
Description
In the Twenty Twenty theme, when an image is inserted inline within a paragraph block in the WordPress block editor, it is rendered with display: inline
in the backend (editor), which matches WYSIWYG expectations.
However, on the frontend, the same image is rendered with display: block
, causing layout issues and breaking the inline flow of the paragraph.
This behavior is inconsistent and violates the WYSIWYG principle.
Steps to Reproduce
- Create or edit a post.
- Add a paragraph block and insert an image inline with the text.
- Save and view the post on the frontend.
Editor
Frontend
Attachments (1)
Change History (4)
#2
@
3 weeks ago
Reproduction Report
Description
This report validates whether the issue can be reproduced.
Environment
- WordPress: 6.9-alpha-60301
- PHP: 8.2.28
- Server: Apache/2.4.62 (Debian)
- Database: mysqli (Server: 11.8.2-MariaDB-ubu2404 / Client: mysqlnd 8.2.28)
- Browser: Chrome 137.0.0.0
- OS: macOS
- Theme: Twenty Twenty 2.9
- MU Plugins: None activated
- Plugins:
- Gutenberg 21.0.0
- Test Reports 1.2.0
Actual Results
- ✅ Error condition occurs (reproduced).
Supplemental Artifacts
- Editor Screenshot
- Front end Screenshot
Note: See
TracTickets for help on using
tickets.
Patch for Ticket #63615