trunk
Updates `WP_Theme_JSON_Resolver` and tests to be equal to core (#36223)
Backport theme.json tests from Core (#58476)