Men are explicitly requested to wear long pants. Women are requested to wear dresses, skirts and pants that go past the knee. So capri pants are ok. Churches other than at the Vatican are more lenient on this one but still request clothing that covers the knee.