The top of big coloured rectangles should be level with the top of the small coloured squares of the same color (unless there is not enough room for the big rectangle to fit on the small square's line after the small square, in which case the top of big rectangle should be level with the bottom of the respective small square). Both possible outcomes should still happen even if the window is resized.

                                                              A

AAA

                                                                B

BBB