Properly invalidating stroke properties.