Max sprocket size != capacity
they are two different things. Cage length mostly affects max capacity only (ie the ability to manage chain tension over the entire range)
max sprocket size is mainly down to how far out you can manage to get the derailleur guide jockey wheel to sit so it doesn't collide with the largest sprocket - cage size doesn't really matter.