Shakespearean problem play
In Shakespeare studies, the problem plays are plays written by William Shakespeare that are characterised by their complex and ambiguous tone, which shifts violently between more straightforward comic material and dark, psychological drama. Shakespeare's problem plays eschew the traditional trappings of both comedy and tragedy, and are sometimes cited as early predecessors to the tragicomedy.
Source: Wikipedia — Shakespearean problem play (CC BY-SA 4.0)