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
This commit is contained in:
Sergey Biryukov
2022-10-22 12:55:56 +00:00
parent 92084e6f69
commit 2652d2eb25

View File

@@ -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" )',