@@ -5020,7 +5020,7 @@ public function test_get_styles_for_block_with_style_variations_and_custom_selec
50205020
50215021 $ actual_styles = $ theme_json ->get_styles_for_block ( $ metadata );
50225022 $ default_styles = ':root :where(.wp-block-test-milk .liquid, .wp-block-test-milk:is(.frothed, .steamed) .foam, .wp-block-test-milk:not(.spoiled), .wp-block-test-milk.in-bottle){background-color: white;} ' ;
5023- $ variation_styles = ':root :where(.wp-block-test-milk.is-style-chocolate .liquid,.wp-block-test-milk.is-style-chocolate:is(.frothed, .steamed) .foam,.wp-block-test-milk.is-style-chocolate:not(.spoiled),.wp-block-test-milk.in-bottle.is-style-chocolate){background-color: #35281E;} ' ;
5023+ $ variation_styles = ':root :where(.wp-block-test-milk.is-style-chocolate .liquid, .wp-block-test-milk.is-style-chocolate:is(.frothed, .steamed) .foam, .wp-block-test-milk.is-style-chocolate:not(.spoiled), .wp-block-test-milk.in-bottle.is-style-chocolate){background-color: #35281E;} ' ;
50245024 $ expected = $ default_styles . $ variation_styles ;
50255025
50265026 unregister_block_style ( 'test/milk ' , 'chocolate ' );
@@ -8236,22 +8236,22 @@ public function data_prepend_to_selector() {
82368236 'where with internal commas and top-level comma ' => array (
82378237 'selector ' => ':where(.a, .b),.c ' ,
82388238 'to_prepend ' => '.scope ' ,
8239- 'expected ' => '.scope :where(.a, .b),.scope .c ' ,
8239+ 'expected ' => '.scope :where(.a, .b), .scope .c ' ,
82408240 ),
82418241 'is with internal commas and top-level comma ' => array (
82428242 'selector ' => ':is(.x, .y),.z ' ,
82438243 'to_prepend ' => '.wrapper ' ,
8244- 'expected ' => '.wrapper :is(.x, .y),.wrapper .z ' ,
8244+ 'expected ' => '.wrapper :is(.x, .y), .wrapper .z ' ,
82458245 ),
82468246 'multiple parenthesized selectors with top-level comma ' => array (
82478247 'selector ' => ':where(.a, .b),:is(.c, .d) ' ,
82488248 'to_prepend ' => '.scope ' ,
8249- 'expected ' => '.scope :where(.a, .b),.scope :is(.c, .d) ' ,
8249+ 'expected ' => '.scope :where(.a, .b), .scope :is(.c, .d) ' ,
82508250 ),
82518251 'nested parentheses with commas ' => array (
82528252 'selector ' => ':where(:not(.a, .b), .c),.d ' ,
82538253 'to_prepend ' => '.scope ' ,
8254- 'expected ' => '.scope :where(:not(.a, .b), .c),.scope .d ' ,
8254+ 'expected ' => '.scope :where(:not(.a, .b), .c), .scope .d ' ,
82558255 ),
82568256 );
82578257 }
0 commit comments