From 519d8d8533638af80ef049084aec04c7e5f9b6e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Wed, 19 May 2021 11:18:11 +0200 Subject: [PATCH] Update use case --- phpunit/class-wp-theme-json-test.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/phpunit/class-wp-theme-json-test.php b/phpunit/class-wp-theme-json-test.php index 06b4a7365eec3..81ab493724332 100644 --- a/phpunit/class-wp-theme-json-test.php +++ b/phpunit/class-wp-theme-json-test.php @@ -576,7 +576,7 @@ function test_remove_insecure_properties_removes_unsafe_styles_sub_properties() 'padding' => array( 'top' => '1px', 'right' => '1px', - 'bottom' => 'var(--unsafe-var-toplevel)', + 'bottom' => 'var(--bottom, var(--unsafe-fallback))', 'left' => '1px', ), ), @@ -586,7 +586,7 @@ function test_remove_insecure_properties_removes_unsafe_styles_sub_properties() 'padding' => array( 'top' => '2px', 'right' => '2px', - 'bottom' => 'var(--unsafe-var-elements)', + 'bottom' => 'var(--bottom, var(--unsafe-fallback))', 'left' => '2px', ), ), @@ -598,7 +598,7 @@ function test_remove_insecure_properties_removes_unsafe_styles_sub_properties() 'padding' => array( 'top' => '3px', 'right' => '3px', - 'bottom' => 'var(--unsafe-var-block)', + 'bottom' => 'var(bottom, var(--unsafe-fallback))', 'left' => '3px', ), ), @@ -608,7 +608,7 @@ function test_remove_insecure_properties_removes_unsafe_styles_sub_properties() 'padding' => array( 'top' => '4px', 'right' => '4px', - 'bottom' => 'var(--unsafe-var-block-elements)', + 'bottom' => 'var(--bottom, var(--unsafe-fallback))', 'left' => '4px', ), ), @@ -801,7 +801,7 @@ function test_remove_insecure_properties_removes_unsafe_preset_settings() { array( 'name' => 'Blue', 'slug' => 'blue', - 'color' => 'var(--custom-v1)', + 'color' => 'var(--color, var(--unsafe-fallback))', ), array( 'name' => 'Pink', @@ -830,7 +830,7 @@ function test_remove_insecure_properties_removes_unsafe_preset_settings() { array( 'name' => 'Helvetica Arial', 'slug' => 'helvetica-arial', - 'fontFamily' => 'var(--custom-var-1)', + 'fontFamily' => 'var(--fontFamily, var(--unsafe-fallback))', ), ), ), @@ -851,7 +851,7 @@ function test_remove_insecure_properties_removes_unsafe_preset_settings() { array( 'name' => 'Blue', 'slug' => 'blue', - 'color' => 'var(--custom-v1)', + 'color' => 'var(--color, var(--unsafe--falback))', ), array( 'name' => 'Pink',