Skip to content

Commit

Permalink
Updated comment and function name to reflect contents of test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Oct 14, 2022
1 parent 160762b commit 4bfdd3c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ public function test_should_strip_html_tags_and_remove_unsafe_css_properties() {


/**
* Tests that calc, clamp, min, max, minmax CSS functions and --wp--* CSS custom properties are allowed.
* Tests that calc, clamp, min, max, minmax CSS functions and CSS custom properties are allowed.
*
* @covers ::get_declarations_string
* @covers ::filter_declaration
*/
public function test_should_allow_css_functions_and_strip_unsafe_css_values() {
public function test_should_allow_css_functions_and_custom_properties_and_strip_unsafe_css_values() {
$input_declarations = array(
'background' => 'var(--wp--preset--color--primary, 10px)', // Simple var().
'font-size' => 'clamp(36.00rem, calc(32.00rem + 10.00vw), 40.00rem)', // Nested clamp().
Expand Down

0 comments on commit 4bfdd3c

Please sign in to comment.