Fantastic that we've finally got to the bottom of this one, also my test code no longer asserts when the code is changed to match your changes. So the rendering code becomes:
This test does not pass in my image either. I don't see where such
code would be used though? File (and thus CSS files) are certainly not
fed through a HTML canvas.