Testing that dynamic changes to the parent element are reflected in gradients