Changeset 52324 for trunk/src/wp-includes/block-supports/layout.php
- Timestamp:
- 12/06/2021 06:18:27 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/layout.php
r52302 r52324 105 105 if ( 'horizontal' === $layout_orientation ) { 106 106 $style .= 'align-items: center;'; 107 if ( ! empty( $layout['setCascadingProperties'] ) && $layout['setCascadingProperties'] ) { 108 $style .= '--layout-direction: row;'; 109 } 107 110 /** 108 111 * Add this style only if is not empty for backwards compatibility, … … 115 118 // --layout-justification-setting allows children to inherit the value regardless or row or column direction. 116 119 $style .= "--layout-justification-setting: {$justify_content_options[ $layout['justifyContent'] ]};"; 117 $style .= '--layout-direction: row;';118 120 $style .= "--layout-wrap: $flex_wrap;"; 119 121 $style .= "--layout-justify: {$justify_content_options[ $layout['justifyContent'] ]};"; … … 126 128 $style .= "align-items: {$justify_content_options[ $layout['justifyContent'] ]};"; 127 129 if ( ! empty( $layout['setCascadingProperties'] ) && $layout['setCascadingProperties'] ) { 130 $style .= '--layout-direction: column;'; 131 } 132 if ( ! empty( $layout['setCascadingProperties'] ) && $layout['setCascadingProperties'] ) { 128 133 // --layout-justification-setting allows children to inherit the value regardless or row or column direction. 129 134 $style .= "--layout-justification-setting: {$justify_content_options[ $layout['justifyContent'] ]};"; 130 $style .= '--layout-direction: column;';131 135 $style .= '--layout-justify: initial;'; 132 136 $style .= "--layout-align: {$justify_content_options[ $layout['justifyContent'] ]};";
Note: See TracChangeset
for help on using the changeset viewer.