mirror of
git://develop.git.wordpress.org/
synced 2025-02-06 15:41:08 +01:00
Formatting: Add aspect-ratio
as valid CSS property in KSES.
This changeset adds support for the `aspect-ratio` CSS property, which is considered safe for inline CSS. Props ajlende, peterwilsoncc. Fixes #57664. git-svn-id: https://develop.svn.wordpress.org/trunk@55309 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
08160032ef
commit
e0a9b1f4c5
@ -2277,7 +2277,8 @@ function kses_init() {
|
|||||||
* nested `var()` values, and assigning values to CSS variables.
|
* nested `var()` values, and assigning values to CSS variables.
|
||||||
* Added support for `object-fit`, `gap`, `column-gap`, `row-gap`, and `flex-wrap`.
|
* Added support for `object-fit`, `gap`, `column-gap`, `row-gap`, and `flex-wrap`.
|
||||||
* Extended `margin-*` and `padding-*` support for logical properties.
|
* Extended `margin-*` and `padding-*` support for logical properties.
|
||||||
* @since 6.2.0 Added support for `position`, `top`, `right`, `bottom`, `left` and `z-index` position CSS properties.
|
* @since 6.2.0 Added support for `aspect-ratio`, `position`, `top`, `right`, `bottom`, `left`,
|
||||||
|
* and `z-index` CSS properties.
|
||||||
*
|
*
|
||||||
* @param string $css A string of CSS rules.
|
* @param string $css A string of CSS rules.
|
||||||
* @param string $deprecated Not used.
|
* @param string $deprecated Not used.
|
||||||
@ -2445,6 +2446,7 @@ function safecss_filter_attr( $css, $deprecated = '' ) {
|
|||||||
'bottom',
|
'bottom',
|
||||||
'left',
|
'left',
|
||||||
'z-index',
|
'z-index',
|
||||||
|
'aspect-ratio',
|
||||||
|
|
||||||
// Custom CSS properties.
|
// Custom CSS properties.
|
||||||
'--*',
|
'--*',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user