Changeset 54102
- Timestamp:
- 09/08/2022 03:04:39 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/kses.php
r54100 r54102 2225 2225 * @since 5.2.0 Added support for `background-position` and `grid-template-columns`. 2226 2226 * @since 5.3.0 Added support for `grid`, `flex` and `column` layout properties. 2227 * Extend `background-*` support ofindividual properties.2227 * Extended `background-*` support for individual properties. 2228 2228 * @since 5.3.1 Added support for gradient backgrounds. 2229 2229 * @since 5.7.1 Added support for `object-position`. … … 2231 2231 * @since 6.1.0 Added support for `min()`, `max()`, `minmax()`, `clamp()`, 2232 2232 * and nested `var()` values. 2233 * Added support for `gap`, `column-gap`, `row-gap`, and `flex-wrap`. 2234 * Extended `margin-*` and `padding-*` support for logical properties. 2233 2235 * 2234 2236 * @param string $css A string of CSS rules. … … 2336 2338 'margin-left', 2337 2339 'margin-top', 2340 'margin-block-start', 2341 'margin-block-end', 2342 'margin-inline-start', 2343 'margin-inline-end', 2338 2344 2339 2345 'padding', … … 2342 2348 'padding-left', 2343 2349 'padding-top', 2350 'padding-block-start', 2351 'padding-block-end', 2352 'padding-inline-start', 2353 'padding-inline-end', 2344 2354 2345 2355 'flex', … … 2349 2359 'flex-grow', 2350 2360 'flex-shrink', 2361 'flex-wrap', 2362 2363 'gap', 2364 'column-gap', 2365 'row-gap', 2351 2366 2352 2367 'grid-template-columns', -
trunk/tests/phpunit/tests/kses.php
r54100 r54102 937 937 * @ticket 48376 938 938 * @ticket 55966 939 * @ticket 56122 939 940 * @dataProvider data_test_safecss_filter_attr 940 941 * … … 1035 1036 // `flex` and related attributes introduced in 5.3. 1036 1037 array( 1037 'css' => 'flex: 0 1 auto;flex-basis: 75%;flex-direction: row-reverse;flex-flow: row-reverse nowrap;flex-grow: 2;flex-shrink: 1 ',1038 'expected' => 'flex: 0 1 auto;flex-basis: 75%;flex-direction: row-reverse;flex-flow: row-reverse nowrap;flex-grow: 2;flex-shrink: 1 ',1038 'css' => 'flex: 0 1 auto;flex-basis: 75%;flex-direction: row-reverse;flex-flow: row-reverse nowrap;flex-grow: 2;flex-shrink: 1;flex-wrap: nowrap', 1039 'expected' => 'flex: 0 1 auto;flex-basis: 75%;flex-direction: row-reverse;flex-flow: row-reverse nowrap;flex-grow: 2;flex-shrink: 1;flex-wrap: nowrap', 1039 1040 ), 1040 1041 // `grid` and related attributes introduced in 5.3. … … 1236 1237 'css' => 'width: (3em + (10px * 2))', 1237 1238 'expected' => '', 1239 ), 1240 // Gap introduced in 6.1. 1241 array( 1242 'css' => 'gap: 10px;column-gap: 5px;row-gap: 20px', 1243 'expected' => 'gap: 10px;column-gap: 5px;row-gap: 20px', 1244 ), 1245 // Margin and padding logical properties introduced in 6.1. 1246 array( 1247 'css' => 'margin-block-start: 1px;margin-block-end: 2px;margin-inline-start: 3px;margin-inline-end: 4px;padding-block-start: 1px;padding-block-end: 2px;padding-inline-start: 3px;padding-inline-end: 4px', 1248 'expected' => 'margin-block-start: 1px;margin-block-end: 2px;margin-inline-start: 3px;margin-inline-end: 4px;padding-block-start: 1px;padding-block-end: 2px;padding-inline-start: 3px;padding-inline-end: 4px', 1238 1249 ), 1239 1250 );
Note: See TracChangeset
for help on using the changeset viewer.