You might be misreading the animation. It's a direct injection engine, the thing that happens during the compression stroke is fuel injection. Ignition happens a few degrees before TDC, which is realistic.

[deleted]