Skip to content
Prev Previous commit
Next Next commit
Update packages/block-editor/src/utils/style-variable-resolution.js
Co-authored-by: André <[email protected]>
  • Loading branch information
2 people authored and stacimc committed Sep 1, 2021
commit 42e28f203e9e805b88c2096a5b89cdd3d3b1dc13
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export function getResolvedStyleVariable( features, context, variable ) {
.slice( CSS_REFERENCE_PREFIX.length, -CSS_REFERENCE_SUFFIX.length )
.split( '--' );
} else {
// Value is raw.
// We don't know how to parse the value: either is raw of uses complex CSS such as `calc(1px * var(--wp--variable) )`
return variable;
}

Expand Down