use inherit in face definition when detected

I think you meant to use inherit when detected?