regression breaking colors in canvas-based widgets
This commit is contained in:
parent
4dc6b46145
commit
c90fec4285
2 changed files with 3 additions and 2 deletions
|
|
@ -112,7 +112,7 @@ class Canvas extends Widget {
|
|||
|
||||
var val = style.getPropertyValue(data.css).trim()
|
||||
|
||||
if (typeof val === 'string' && val.includes('(')) {
|
||||
if (typeof val === 'string' && val.match(/(var|calc)\(/)) {
|
||||
// property not computed because of calc() or var() in user style
|
||||
// -> attempt to force calculation
|
||||
var dummy = html`<div style="position:absolute;width:var(${data.css})"></div>`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue