ademilter / ademilter/bricklayer

Requires Content-Security-Policy unsafe-inline

未关闭
#28 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
2.4k
派生
116
PR 合并指标
30 天内没有已合并 PR

描述

Bricklayer doesn't work unless `style-src: 'unsafe-inline'` is allowed because of [bricklayer.ts#L42-L48](https://github.com/ademilter/bricklayer/blob/master/src/bricklayer.ts#L42-L48).
I didn't get into any issues applying standard `style` properties:
```
this.element.style.display = 'block';
this.element.style.visibility = 'hidden !important';
this.element.style.top = '-1000px !important';
var width = this.element.offsetWidth;
this.element.style.display = '';
this.element.style.visibility = '';
this.element.style.top = '';
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。