Game mechanics or a bug?

We’re not throwing a tantrum here, are we?

What’s nonsense is your insistence on your ignorance and your infantile behaviour.

As for the functionality in question, Blizzard has actually documented it, which isn’t even always the case. See this reference: 31.0 Known Issues - #74 by SparkyElf-2852 (citing this post in particular because it’s got all the relevant info gathered in one place).

PS There’s even more in that entry in the patch notes:

That means, for instance, the player will still pay that Health if they are Immune or have Divine Shield.