Try on the actual shoes
Stand in the shoes with trousers you own. Walk several normal steps, use a stair if available and look at where the hem settles. Temporarily fold the reference to the length you are considering. Capture a side photo standing and check whether the back edge touches the heel when you move.
Record inseam and opening together
Lay the reference flat and measure from the crotch seam to the lower edge, then across the relaxed opening. Note if the hem is elastic or has a drawcord. If the listing uses an outer seam length, ask for the inseam separately. Differences in rise can make two outer lengths behave differently.
Flag the pairing that needs extra checking
Suppose a 22 cm flat opening falls comfortably over a bulky shoe, while a 17 cm opening on a similar pair catches at the tongue. Keep the proposed pairing in the note beside the measurement. If you expect to hem the garment, check the seam finish and design details before assuming that shortening will solve it.