capsule now updates when the size attribute is changed