The behavior called edge-triggering may sound simpple, but usually takes people a longish time to take seriously. Apparently the idea violates intuition: the flops acts on what happened before it was clocked, not after. No, this behavior does not violate causality. How this behavior possible?
"The ART of Electronics" , Hayes & Horowitz