Closed wjaspers closed 1 month ago
When exporting a chart whose style choices are utilizing CSS variables, the variable values should be used.
Exporting a chart with CSS variables yields invalid values, which turn black.
https://jsfiddle.net/bru0dm7q/1/
/* styles */ :root { --hc-color-0: #FF0000; }
// chart options "series": [{ "data": [{ "x": 1, "y": 9, "name": "Point2", "color": "var(--hc-color-0)" }], "type": "column" },
Highcharts 11.4.1
Chrome, Chromium 124.0
not tested on Safari or Edge
As shown to the user
As exported
Closing as duplicate of https://github.com/highcharts/highcharts/issues/16400.
Expected behaviour
When exporting a chart whose style choices are utilizing CSS variables, the variable values should be used.
Actual behaviour
Exporting a chart with CSS variables yields invalid values, which turn black.
Live demo with steps to reproduce
https://jsfiddle.net/bru0dm7q/1/
Example code
Product version
Highcharts 11.4.1
Affected browser(s)
Chrome, Chromium 124.0
not tested on Safari or Edge
Attached exported screenshot
As shown to the user![browser-view](https://github.com/highcharts/highcharts/assets/598148/54779ed6-2889-4a15-9f91-76ee6f47f188)
As exported![styled-mode-color-loss](https://github.com/highcharts/highcharts/assets/598148/d6ccc8ec-26dc-4e3e-a799-fe9b7f4ebd21)