Hi! The USS styles don’t implement margin collapse. As far as I can tell, this is the first request for such feature. This is probably pretty common in web design, maybe a bit more unusual for gamedev.
That being said, introducing that feature would be a breaking change for existing project, so it would have to be opt-in.
an opt-in way to collapse margins would be awesome to have!
One use-case would be to have a list of elements with the same spacing between them as they have to an outer element. I could just set one of the adjacent sides of siblings to 0 margin, but then if the direction or alignment ever needed to change, I’d have to edit this style again. If I wanted to change this in runtime, I’d have to change the style in runtime.
But maybe I’m missing something and there is already a dead simple (as in: collapsing margins) way to solve this? I currently can’t think of another way that doesn’t include more code or adding+managing more elements… is there another intended way to accomplish this?