`BORDER_ISOLATED` is not an independent border type but just a flag for other ones.
So `borderType == BORDER_ISOLATED` looks weird.