visibility and size constraint