|
|
@ -174,11 +174,15 @@ class Modifier { |
|
|
|
* @returns {Modifier} this modifier object |
|
|
|
*/ |
|
|
|
background(color) { |
|
|
|
this._modifications["background-color"] = ( |
|
|
|
color |
|
|
|
? color.cssRGBString() |
|
|
|
: "inherit" |
|
|
|
); |
|
|
|
if (color) { |
|
|
|
if (color._hex) { |
|
|
|
this._modifications["background-color"] = color._hex; |
|
|
|
} else { |
|
|
|
this._modifications["background-color"] = color.cssRGBString(); |
|
|
|
} |
|
|
|
} else { |
|
|
|
this._modifications["background-color"] = "inherit"; |
|
|
|
} |
|
|
|
return this; |
|
|
|
} |
|
|
|
|
|
|
|