Changes between Initial Version and Version 2 of Ticket #58815
- Timestamp:
- 07/17/2023 03:57:58 AM (22 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #58815
-
Property
Component
changed from
General
toEditor
-
Property
Component
changed from
-
Ticket #58815 – Description
initial v2 1 Is add_theme_support('wp-block-styles')being deprecated in WP 6.3? If not, maybe it needs to be updated.1 Is `add_theme_support('wp-block-styles')` being deprecated in WP 6.3? If not, maybe it needs to be updated. 2 2 3 3 The extra block styles include margin settings, for example 4 {{{ 4 5 .wp-block-image { 5 6 margin: 0 0 1em; 6 7 } 8 }}} 7 9 8 10 This is done for image, audio, embed, table or video blocks. 9 11 10 The top margin styling is overridden in WP 6.2 by styles with targetting such as 12 The top margin styling is overridden in WP 6.2 by styles with targeting such as 13 {{{ 11 14 body .is-layout-flow > * + * { 12 15 margin-block-start: var(–wp–preset–spacing–normal); 13 16 } 14 so the blocks get the margin-top which they require as per the page layout. 17 }}} 18 so the blocks get the `margin-top` which they require as per the page layout. 15 19 16 However, WP 6.3 changes the targetting of these styles to, for example 20 However, WP 6.3 changes the targeting of these styles to, for example 21 {{{ 17 22 :where(body .is-layout-flow) > * { 18 23 margin-block-start: var(–wp–preset–spacing–normal); 19 24 } 20 This is less specific, with the result that the wp-block-styles margin setting overrides it and will set the margin-tops to 0 for the above blocks. 25 }}} 26 This is less specific, with the result that the `wp-block-styles` margin setting overrides it and will set the margin-tops to 0 for the above blocks. 21 27 22 This will affect existing content on many sites which use this add_theme_supportand these blocks.28 This will affect existing content on many sites which use this `add_theme_support` and these blocks. 23 29 24 30 Twenty twenty-two theme is an example.