[wp-trac] [WordPress Trac] #61656: Layout: Invalid CSS for nested fullwidth layouts with zeroed-out custom padding

WordPress Trac noreply at wordpress.org
Tue Jul 16 01:18:51 UTC 2024


#61656: Layout: Invalid CSS for nested fullwidth layouts with zeroed-out custom
padding
--------------------------+-----------------------------
 Reporter:  andrewserong  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  6.6.1
Component:  Editor        |    Version:  trunk
 Severity:  normal        |   Keywords:  gutenberg-merge
  Focuses:                |
--------------------------+-----------------------------
 An invalid CSS issue occurs when applying a padding rule of `0` to a full
 width group block, inside a full width group.

 This creates an unwanted horizontal scroll, as the nested fullwidth value
 is not properly negated.

 The fix is to treat `0` padding values as `0px` in the Layout block
 support, so that the `calc()` rule applies correctly. This has been fixed
 in Gutenberg in https://github.com/WordPress/gutenberg/pull/63436, and
 needs to be backported to core, ideally in WP 6.6.1.

 The issue is further described in this Gutenberg issue:
 https://github.com/WordPress/gutenberg/issues/63432

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61656>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list