add canvas.style.setProperty in headlessCanvas