[wp-trac] [WordPress Trac] #57504: Add position CSS properties in safe_style_css filter

WordPress Trac noreply at wordpress.org
Thu Jan 19 04:32:50 UTC 2023


#57504: Add position CSS properties in safe_style_css filter
--------------------------+-----------------------------
 Reporter:  andrewserong  |      Owner:  (none)
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Formatting    |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In the Gutenberg repo, a feature has been merged that allows container
 blocks (Group) to set a Position in order to support sticky/fixed blocks.
 The longer-term goal is also to allow relative/absolute positioning for
 creative layouts and designs.

 In order to support this, this ticket proposes updating the
 `safe_style_css` filter to allow the following CSS properties related to
 position:

 * `position`
 * `top`
 * `right`
 * `bottom`
 * `left`
 * `z-index` (to ensure sticky / fixed blocks can sit above other blocks)

 For further context, the Gutenberg PR that introduced the Position feature
 is: https://github.com/WordPress/gutenberg/pull/46142 — there will be a
 separate trac ticket for proposing backporting that feature to core.

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


More information about the wp-trac mailing list