can someone clear something up for me.

if a chinese person was beaten/killed in a predominantly muslim community because he/she was chinese, that would be racism, right?

but if a white person was killed in a predominantly black community, that wouldn’t be racist?

someone fill me in here