QCD analysis of the scale-invariance of jets