[wp-trac] [WordPress Trac] #62028: Paragraph margins not honored (in the backend) when global blockspacing is set to zero (new issue in 6.6.1)
WordPress Trac
noreply at wordpress.org
Mon Sep 16 17:08:52 UTC 2024
#62028: Paragraph margins not honored (in the backend) when global blockspacing is
set to zero (new issue in 6.6.1)
--------------------------+------------------------------
Reporter: magicmallows | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.6.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by hellofromTonya):
== Test Report
=== Environment
* OS: macOS
* Server: nginx
* Localhost: Local
* WordPress: 6.5.5, 6.6.1, and 6.6.2
* PHP: 7.4.30
* MySQL: 8.0.16
=== Steps to Reproduce or Test
1. Go to Appearance > Editor.
2. Open the Styles UI by clicking on the page and then the Styles icon in
the top toolbar.
3. Open the Layout UI.
4. Change the Block Spacing to `0`.
5. Navigate back to the Styles UI.
6. Open Blocks > Paragraph.
7. Scroll down to the Margin. Open the Set Custom Size. Set 200 in the
text box.
8. Save the custom styles.
9. Go to Pages > Add New Page and add multiple paragraphs (e.g
[https://loremipsum.io/generator?n=5&t=p 5 generic paragraphs] to copy and
paste).
10. Notice the paragraph spacing 🐞 Reported bug should occur here.
11. Back in the Site Editor, change the Styles > Blocks > Paragraph margin
to another number such as `60`.
12. Refresh the Page editor. Notice the paragraph spacing. Did it change?
🐞 Reported bug should occur here.
Repea the tests on 6.5.5, 6.6.1, and 6.6.2 to note the differences.
=== Expected Results
When reproducing the reported bug:
- ❌ The paragraph spacing should not change from the default after
setting its margin in the Site Editor Styles > Blocks > Paragraph UI.
==== Actual Results
Results on 6.5.5, 6.6.1, and 6.6.2 were the same in my testing. The
paragraph margin rendered as expected in the post and page editors.
Step 9-10 CSS:
{{{
:root :where(p) {
margin-top: 200px;
margin-bottom: 200px;
}
}}}
After changing it to 60, the CSS:
{{{
:root :where(p) {
margin-top: 60px;
margin-bottom: 60px;
}
}}}
I was not able to reproduce the reported bug on 6.5.5, 6.6.1, or 6.6.2.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62028#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list