ademilter / ademilter/bricklayer
Requires Content-Security-Policy unsafe-inline
未关闭
- 主要语言
- 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 还没有评估数据。