0
The behaviour you expect doesn't correspond to a simple inverter, but to an inverting Schmitt Trigger. Its CMOS implementation is more complex (example), additional components essentially create hysteresis which prevents the output gates from being both open at the same time, which is when CMOS l...