Make WordPress Core

Opened 5 months ago

Last modified 3 months ago

#63935 new defect (bug)

Grid block background causes inconsistent padding on frontend

Reported by: viralsampat's profile viralsampat Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.8.3
Component: Bundled Theme Keywords: needs-patch dev-feedback 2nd-opinion needs-testing
Focuses: ui, css Cc:

Description

Hello,

I have reviewed the Grid block and noticed a padding issue when a background is applied. On the admin/editor side, it looks correct, but on the front end, the layout appears messy due to inconsistent padding.

I think that it should be correct on both editor & front end.

For better understanding, I have attached its vide.

Thanks,

Attachments (2)

Screen Recording 2025-09-05 at 6.22.42 PM.mp4 (2.9 MB) - added by viralsampat 5 months ago.
Issue video:
63935 testReport.png (224.8 KB) - added by doreen233 5 months ago.
Screenshot showing grid block padding rendering consistently in both editor and frontend

Change History (6)

#1 @doreen233
5 months ago

Reproduction Report

Description

Attempted to reproduce issue #63935

Environment

  • WordPress: 6.9-alpha-60093-src
  • PHP: 8.2.29
  • Server: PHP built-in development server (via Docker)
  • Database: MySQL 8.4.6 (Community Server - GPL)
  • Browser: Version 139.0.7258.155 (Official Build) (arm64)
  • Theme: Twenty Twenty-Five 1.3
  • Plugins: none activated

Steps to Reproduce

  1. Create a new page
  2. Insert a Grid block
  3. Add a background color
  4. View the block in both the block editor and on the frontend

Expected Results

Padding should appear inconsistent between the editor and frontend (as reported)

Actual Results

Padding was consistent in both editor and frontend. Issue could not be reproduced

Supplemental Artifacts

Add as Attachment

@doreen233
5 months ago

Screenshot showing grid block padding rendering consistently in both editor and frontend

#2 @noruzzaman
3 months ago

Reproduction Report

Description

This report validates whether the issue can be reproduced.

Environment

  • WordPress: 6.8.3
  • PHP: 8.2.27
  • Server: nginx/1.26.1
  • Database: mysqli (Server: 8.0.35 / Client: mysqlnd 8.2.27)
  • Browser: Chrome 141.0.0.0
  • OS: macOS
  • Theme: Twenty Fifteen 4.0
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Actual Results

  1. I was able to reproduce the issue.

Additional Notes

  • The issue occurs in the Twenty Fifteen theme.

Screenshots

Editor frontend
https://i.ibb.co.com/23Pjz4Q6/Editor.png https://i.ibb.co.com/vvMwf62f/frontend.png

#3 @rezwanshiblu1952
3 months ago

  • Version set to 6.8.3

Reproduction Report:


Description:
I found different results in the local and live server environments.


Replication Steps:

1.Create a new page
2.Add a Grid block
3.Set a background color like black and text color white
4.Now check the padding issue from the block editor backend to the frontend


Replication video:

1.Not replicated in the local environment, and here is the screen recording with voice - https://www.loom.com/share/f56b1edf48034096a17ea61238dd61f5

2.But Replicated in the live environment server, and here is the screen recording with voice - https://www.loom.com/share/ae1370e4f1cf497384d9d212d295f060


Note:

Finally, I rechecked this issue on the other 3 live sites and replicated it as a bug.


Environment:

1.WordPress: 6.8.3
2.PHP: 8.2.27
3.Server: nginx/apache
4.Database: mysqli 8.0.35
5.Browser: Chrome/Firefox
6.OS: Windows
7.Theme: Twenty Twenty-Five/Twenty Fifteen
8.Plugins: Not activated


Screenshots:

Backend: https://prnt.sc/bFsLgBSi0VNK
Frontend: https://prnt.sc/bzf_HEIQlJcf


Final Results:

I was able to replicate the issue. Padding should be the same from backend to frontend.

Last edited 3 months ago by rezwanshiblu1952 (previous) (diff)

#4 @huzaifaalmesbah
3 months ago

@viralsampat Thanks for taking the time to report this issue!

I see you’ve mentioned Component Bundled Theme, but haven’t specified which bundled theme you’re referring to. Could you please clarify which theme you’re seeing this issue with?

This will help others reproduce and investigate the problem more effectively. Some contributors have already tested with themes like Twenty Twenty-Five and Twenty Fifteen, so confirming the exact theme will be very helpful.

Thanks again!

Note: See TracTickets for help on using tickets.