File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ async function embedBackground<T extends HTMLElement>(
26
26
clonedNode : T ,
27
27
options : Options ,
28
28
) {
29
- if ( ! ( await embedProp ( 'background' , clonedNode , options ) ) ) {
30
- await embedProp ( 'background-image' , clonedNode , options )
31
- }
32
- if ( ! ( await embedProp ( 'mask' , clonedNode , options ) ) ) {
33
- await embedProp ( 'mask-image' , clonedNode , options )
34
- }
29
+ ; ( await embedProp ( 'background' , clonedNode , options ) ) ||
30
+ ( await embedProp ( 'background-image' , clonedNode , options ) )
31
+ ; ( await embedProp ( 'mask' , clonedNode , options ) ) ||
32
+ ( await embedProp ( '-webkit- mask' , clonedNode , options ) ) ||
33
+ ( await embedProp ( 'mask-image' , clonedNode , options ) ) ||
34
+ ( await embedProp ( '-webkit-mask-image' , clonedNode , options ) )
35
35
}
36
36
37
37
async function embedImageNode < T extends HTMLElement | SVGImageElement > (
You can’t perform that action at this time.
0 commit comments