Changeset 58241 for trunk/src/wp-includes/block-supports/layout.php
- Timestamp:
- 05/30/2024 01:14:15 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/layout.php
r58170 r58241 15 15 * 16 16 * @since 6.3.0 17 * @since 6.6.0 Updated specificity for compatibility with 0-1-0 global styles specificity. 17 18 * @access private 18 19 * … … 52 53 'spacingStyles' => array( 53 54 array( 54 'selector' => ' > :first-child :first-child',55 'selector' => ' > :first-child', 55 56 'rules' => array( 56 57 'margin-block-start' => '0', … … 58 59 ), 59 60 array( 60 'selector' => ' > :last-child :last-child',61 'selector' => ' > :last-child', 61 62 'rules' => array( 62 63 'margin-block-end' => '0', … … 117 118 'spacingStyles' => array( 118 119 array( 119 'selector' => ' > :first-child :first-child',120 'selector' => ' > :first-child', 120 121 'rules' => array( 121 122 'margin-block-start' => '0', … … 123 124 ), 124 125 array( 125 'selector' => ' > :last-child :last-child',126 'selector' => ' > :last-child', 126 127 'rules' => array( 127 128 'margin-block-end' => '0', … … 151 152 ), 152 153 array( 153 'selector' => ' > *',154 'selector' => ' > :is(*, div)', // :is(*, div) instead of just * increases the specificity by 001. 154 155 'rules' => array( 155 156 'margin' => '0', … … 173 174 'baseStyles' => array( 174 175 array( 175 'selector' => ' > *',176 'selector' => ' > :is(*, div)', // :is(*, div) instead of just * increases the specificity by 001. 176 177 'rules' => array( 177 178 'margin' => '0', … … 223 224 * @since 6.1.0 Added `$block_spacing` param, use style engine to enqueue styles. 224 225 * @since 6.3.0 Added grid layout type. 226 * @since 6.6.0 Removed duplicated selector from layout styles. 225 227 * @access private 226 228 * … … 262 264 ), 263 265 array( 264 'selector' => "$selector $selector> * + *",266 'selector' => "$selector > * + *", 265 267 'declarations' => array( 266 268 'margin-block-start' => $gap_value, … … 371 373 ), 372 374 array( 373 'selector' => "$selector $selector> * + *",375 'selector' => "$selector > * + *", 374 376 'declarations' => array( 375 377 'margin-block-start' => $gap_value, … … 550 552 * @since 6.3.0 Adds compound class to layout wrapper for global spacing styles. 551 553 * @since 6.3.0 Check for layout support via the `layout` key with fallback to `__experimentalLayout`. 554 * @since 6.6.0 Removed duplicate container class from layout styles. 552 555 * @access private 553 556 * … … 796 799 797 800 $style = wp_get_layout_style( 798 ".$container_class .$container_class",801 ".$container_class", 799 802 $used_layout, 800 803 $has_block_gap_support,
Note: See TracChangeset
for help on using the changeset viewer.