Clean local WP5.9.1
Playing with Effects > Mask > Custom
Using a SVG sprite in my child theme, so as not to hardcode paths I use Dynamic Content. The Dynamic Content paths are being turned into the inline CSS Custom Properties for example style="–tco-dc1f2-0:http://localhost" which does not play correctly with the mask-image CSS style making it invalid.
With two paths to the Dynamic Content.
-
{{dc:global:home_url}}
for http://localhost -
{{dc:acf:option_field field="svg_sprite_path"}}
which is an ACF Option Field to the SVG file path, in this case /wp-content/themes/pro-child/dist/icons/sprite.svg#
The full string entered into the Mask Custom box look something like url(http://localhost/wp-content/themes/pro-child/dist/icons/sprite.svg#star) and seems to render the valid CSS mask-image style:
mask-image: url(http://localhost:8008/wp-content/themes/pro-child/dist/icons/sprite.svg#star);
However when using Dynamic Content in the Custom mask, these are replaced by CSS Custom Properties with do not play well with the mask-image CSS style. The values entered as Custom mask are:
url({{dc:global:home_url}}{{dc:acf:option_field field="svg_sprite_path"}}star)
url({{dc:global:home_url}}/wp-content/themes/pro-child/dist/icons/sprite.svg#star)
Any thoughts on this could be rectified?