diff options
Diffstat (limited to 'ext/js/display/sandbox')
| -rw-r--r-- | ext/js/display/sandbox/structured-content-generator.js | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/ext/js/display/sandbox/structured-content-generator.js b/ext/js/display/sandbox/structured-content-generator.js index 60bf0ee5..ff05cc02 100644 --- a/ext/js/display/sandbox/structured-content-generator.js +++ b/ext/js/display/sandbox/structured-content-generator.js @@ -347,6 +347,7 @@ export class StructuredContentGenerator {              fontWeight,              fontSize,              color, +            background,              backgroundColor,              textDecorationLine,              textDecorationStyle, @@ -355,8 +356,10 @@ export class StructuredContentGenerator {              borderStyle,              borderRadius,              borderWidth, +            clipPath,              verticalAlign,              textAlign, +            textEmphasis,              textShadow,              margin,              marginTop, @@ -377,9 +380,11 @@ export class StructuredContentGenerator {          if (typeof fontWeight === 'string') { style.fontWeight = fontWeight; }          if (typeof fontSize === 'string') { style.fontSize = fontSize; }          if (typeof color === 'string') { style.color = color; } +        if (typeof background === 'string') { style.background = background; }          if (typeof backgroundColor === 'string') { style.backgroundColor = backgroundColor; }          if (typeof verticalAlign === 'string') { style.verticalAlign = verticalAlign; }          if (typeof textAlign === 'string') { style.textAlign = textAlign; } +        if (typeof textEmphasis === 'string') { style.textEmphasis = textEmphasis; }          if (typeof textShadow === 'string') { style.textShadow = textShadow; }          if (typeof textDecorationLine === 'string') {              style.textDecoration = textDecorationLine; @@ -396,6 +401,7 @@ export class StructuredContentGenerator {          if (typeof borderStyle === 'string') { style.borderStyle = borderStyle; }          if (typeof borderRadius === 'string') { style.borderRadius = borderRadius; }          if (typeof borderWidth === 'string') { style.borderWidth = borderWidth; } +        if (typeof clipPath === 'string') { style.clipPath = clipPath; }          if (typeof margin === 'string') { style.margin = margin; }          if (typeof marginTop === 'number') { style.marginTop = `${marginTop}em`; }          if (typeof marginTop === 'string') { style.marginTop = marginTop; } |