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

WordPress Trac noreply at wordpress.org
Thu Jul 18 06:48:24 UTC 2024


#61656: Layout: Invalid CSS for nested fullwidth layouts with zeroed-out custom
padding
-------------------------------------------------+-------------------------
 Reporter:  andrewserong                         |       Owner:  noisysocks
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.6.1
Component:  Editor                               |     Version:  6.6
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  gutenberg-merge has-patch commit     |     Focuses:
  needs-testing has-testing-info                 |
-------------------------------------------------+-------------------------
Changes (by noisysocks):

 * owner:  (none) => noisysocks
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58750" 58750]:
 {{{
 #!CommitTicketReference repository="" revision="58750"
 Block Themes: Fix invalid css for nested fullwidth layouts with zero
 padding applied

 In the Layout block support, handle 0 values for padding as 0px in calc()
 rules. This resolves a bug for nested fullwidth layouts when zero padding
 is
 applied. Due to how calc() works, without supplying the unit, the rule
 will not
 work, resulting in a horizontal scrollbar.

 Backports the PHP changes in
 https://github.com/WordPress/gutenberg/pull/63436.

 Fixes #61656.
 Props andrewserong, mukesh27, aaronrobertshaw.
 }}}

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


More information about the wp-trac mailing list