We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe90abf commit ac62f55Copy full SHA for ac62f55
src/common/color-element.js
@@ -165,9 +165,10 @@ const Self = class ColorElement extends NudeElement {
165
}
166
167
// One of the supported color values; resolve and cache it
168
+ let backgroundColor = element.style.backgroundColor;
169
element.style.backgroundColor = value;
170
let color = getComputedStyle(element).backgroundColor;
- element.style.backgroundColor = "";
171
+ element.style.backgroundColor = backgroundColor;
172
173
let resolvedColor = Self.resolveColor(color);
174
if (resolvedColor) {
0 commit comments