Edit: See final update below.
a.css
#root {
background-color: #f00;
}
body {
text-align: center;
}
b.css
#root {
width: 640px;
height: 360px;
}
expected.css
#root{width:640px;height:360px;background-color:red}body{text-align:center}
actual.css
#root{background-color:red}body{text-align:center}#root{width:640px;height:360px}
If the body style is omitted, it merges the #root styles as expected.