rect-cover

Computes a transform between two rectangles the same way as background-size cover

rect-contain

Computes a transform between two rectangles the same way as background-size contain