Browser: Chrome 110
OS: Windows
When CSS Sync is enabled in Bricks, adding a gradient overlay to an element incorrectly applies the CSS to %root% instead of targeting a :before or :after pseudo-element. This effectively replaces the background-image property, completely removing any existing background image on the element. Notably, even if the user explicitly switches to the :before tab in the builder, the styles are still incorrectly applied to %root%.
Steps to Reproduce:
-
Enable CSS Sync.
-
Select an element and assign a background image to it.
-
Attempt to add a gradient overlay (or switch to the
:beforetab and add the gradient).
Actual Behavior: The gradient CSS is applied directly to %root%, which overwrites the original background image URL and deletes the image altogether.
Expected Behavior: The gradient overlay should be applied to a pseudo-element (:before or :after), preserving the original background image on %root% so they can coexist. The only way to solve this is to desactivate the feature or write the css by hand.