diff --git a/src/track/text-style.ts b/src/track/text-style.ts index 4fb7b4d0..eef675a9 100644 --- a/src/track/text-style.ts +++ b/src/track/text-style.ts @@ -283,7 +283,8 @@ class TextStyle { attributes.push('text-align: ' + this.textAlign); attributes.push('font-family: ' + this.fontFamily); attributes.push('color: ' + TextStyle.toRGBA(this.fontColor, this.fontOpacity)); - attributes.push('background-color: ' + TextStyle.toRGBA(this.backgroundColor, this.backgroundOpacity)); + attributes.push(`background: linear-gradient(0deg, ${TextStyle.toRGBA(this.backgroundColor, this.backgroundOpacity)}, ${TextStyle.toRGBA(this.backgroundColor, this.backgroundOpacity)})`); + attributes.push('font-size: ' + this.fontSize); attributes.push('text-shadow: ' + this.getTextShadow()); return attributes.join('!important; '); }