I’m unsure if this is a bug, or by design, but the behaviour doesn’t match the documentation.
Currently, Bricks (1.4), if we have a class selected on the element for styling, and then go to custom CSS to add some CSS like so…
root {
background: red;
}
From what it says in the docs, the ‘root’ always refers to the element ID, however it’s output in the CSS with whichever class is currently selected (or ID if that is selected).
So on the front end we may get…
.my-class {
background: red;
}
if ‘my-class’ was currently selected in the dropdown.
I’m not sure if the documentation is incorrect or if this a bug.
See images for example where the class ‘benefit’ is selected on the element as I typed in the CSS.
I believe with ‘element-specific’ this is referring to it being in the element settings, as opposed to being page-specific, which would be in the page settings.
But i think you’re right that it’s supposed to work that way, I think it just needs rewording in the docs to make it clear it’s going to be changing to whichever class or ID that is currently selected. (docs dated November, 2021 so maybe before class styling was added)