2d.strokeStyle.colorObject

ctx.strokeStyle works with color objects

Actual output:

FAIL (fallback content)

Expected output: