WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 2 months ago

#37248 new enhancement

KSES: Flex Properties for the List of Safe CSS Attributes

Reported by: mrahmadawais Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.6
Component: Security Keywords: has-patch dev-feedback
Focuses: ui, administration, template Cc:

Description

As per the discussion in #35877 with @jeremyfelt, KSES can have all the Flex Properties for the List of Safe CSS Attributes. Which is not the case at the moment. The patch along with this tickets solves that problem.

So now all the flex properties with their prefixes would be safe CSS attributes for inline styles.

Attachments (1)

37248.patch (3.4 KB) - added by mrahmadawais 3 years ago.
KSES: Flexbox Properties for the List of Safe CSS Attributes

Download all attachments as: .zip

Change History (6)

@mrahmadawais
3 years ago

KSES: Flexbox Properties for the List of Safe CSS Attributes

#1 @mrahmadawais
3 years ago

  • Keywords has-patch dev-feedback added

#2 @mrahmadawais
3 years ago

  • Component changed from General to Security
  • Focuses administration added

This ticket was mentioned in Slack in #core-editor by jeremyfelt. View the logs.


23 months ago

#5 @peterwilsoncc
2 months ago

In 45363:

KSES: Add flex and related long form properties to safe CSS.

Allow flex, flex-grow, flex-shrink and flex-basis to be used in inline CSS. As of WordPress 5.3 the block editor is expected to use flex-basis inline to set the width in the column block.

Props aduth.
Fixes #47281.
See #37248.

Note: See TracTickets for help on using tickets.