computedStyle 读取背景线性渐变linear-gradient异常
this.createSelectorQuery()
.selectAll(this.selector)
.fields({
dataset: true,
size: true,
rect: true,
computedStyle: ['background'],
})
通过这种方式获取节点背景样式时,如果设置样式为 background: linear-gradient(to bottom, #FCF4E6, #FCF7EE);
但是获得的结果是 background: "rgba(0, 0, 0, 0) linear-gradient(rgb(252, 244, 230), rgb(252, 247, 238)) repeat scroll 0% 0% / auto padding-box border-box"
to bottom 不见了,to top, to right, to left 是OK的