Wait…no, I think I have cracked it….you didn’t specify the element type that the
last of type was to apply to.
If you make it
div[class*='grid-']:last-of-type I think it works.
What you had before was (I think) , effectively
last-of-class and that doesn’t exist.