Make WordPress Core


Ignore:
Timestamp:
05/18/2019 04:33:27 AM (7 years ago)
Author:
peterwilsoncc
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/kses.php

    r44156 r45363  
    831831                'expected' => 'background: green url("foo.jpg") no-repeat fixed center',
    832832            ),
     833            // `flex` and related attributes introduced in 5.3.
     834            array(
     835                'css'      => 'flex: 0 1 auto;flex-basis: 75%;flex-shrink: 0;flex-grow: 1',
     836                'expected' => 'flex: 0 1 auto;flex-basis: 75%;flex-shrink: 0;flex-grow: 1',
     837            ),
    833838        );
    834839    }
Note: See TracChangeset for help on using the changeset viewer.