From 2652d2eb2574bf0d569cde23d0503e795108a4fe Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 22 Oct 2022 12:55:56 +0000 Subject: [PATCH] Tests: Add a test case for `safecss_filter_attr()` with `object-position` property. Follow-up to [50634]. See #56793. git-svn-id: https://develop.svn.wordpress.org/trunk@54667 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/kses.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/phpunit/tests/kses.php b/tests/phpunit/tests/kses.php index f6064dc1f4..8ea6f44ffc 100644 --- a/tests/phpunit/tests/kses.php +++ b/tests/phpunit/tests/kses.php @@ -1107,6 +1107,11 @@ EOF; 'css' => 'background: conic-gradient(at 0% 30%, red 10%, yellow 30%, #1e90ff 50%)', 'expected' => 'background: conic-gradient(at 0% 30%, red 10%, yellow 30%, #1e90ff 50%)', ), + // `object-position` introduced in 5.7.1. + array( + 'css' => 'object-position: right top', + 'expected' => 'object-position: right top', + ), // Expressions are not allowed. array( 'css' => 'height: expression( body.scrollTop + 50 + "px" )',