Mermaid.js diagram colors are now broken since update 1.8.3

My understanding is that CSS values are inherited in a specific order. Shouldn’t the last specified value take precidence over base theme values? If I specify a style directly in the block, doesn’t that take precidence?