Zhenye Wei

Results 16 comments of Zhenye Wei

文字部分不涉及 SVG,靠 SVG 来排版文字太灾难了,用 `text-shadow` 做的,性能差,效果差;ASS `\p` 图形用 SVG 的,这部分是 `feMorphology`。 在 next 分支尝试把文字部分换成 `-webkit-text-stroke`,效果比 `text-shadow` 好多了,圆滑描边什么的没注意。

[`paint-order`](https://caniuse.com/mdn-css_properties_paint-order) 在 DOM 中已经支持了,可以直接用。 ASS.js 中之前已经实现的是用 `::before` 叠一层,设置 `-webkit-text-stroke`,来达到先绘制 stroke,再绘制 fill 的效果,方案来自 #25 不过 `paint-order` 和叠文字的方案都解决不了文字透明的情况,尝试了 `mix-blend-mode` 之类的也没有弄出来,有点难搞。

Do you mean include .css files that imported by .scss files? In your solution, .css files imported by JS will also be included, I think that's not a reasonable way....

No, I think for most use cases, CSS from JS should not be considered as SCSS outputs. This plugin doing simple things, find SCSS files and bundle them, maybe CSS...

Can you provide a ASS file to reproduce it? I don't get your point.