Closed imzlh closed 3 months ago
这一行报错了DOMException: Failed to execute 'registerProperty' on 'CSS': The name provided has already been registered.
DOMException: Failed to execute 'registerProperty' on 'CSS': The name provided has already been registered.
window.CSS.registerProperty && (window.CSS.registerProperty({ name: "--ass-border-width", syntax: "<length>", inherits: !0, initialValue: "0px" }),
在ASS.js库中,这一行定义了这个CSS https://github.com/weizhenye/ASS/blob/c2c0ed5a7cc7513266cc3a49b595b9f92ce406e7/src/renderer/stroke.js#L151 建议:修改--ass-border-width为--libmedia-ass-border-width
--ass-border-width
--libmedia-ass-border-width
我发现了,原来libmedia调用了ASS库 抱歉(溜了)
我的想法是将window.CSS遮蔽掉,加载完再恢复
window.CSS = { ..._CSS, registerProperty(def){ console.debug('Register property:', def.name); } };
只能祈求哪一天libmedia正式与vite交好了
这一行报错了
DOMException: Failed to execute 'registerProperty' on 'CSS': The name provided has already been registered.
在ASS.js库中,这一行定义了这个CSS https://github.com/weizhenye/ASS/blob/c2c0ed5a7cc7513266cc3a49b595b9f92ce406e7/src/renderer/stroke.js#L151 建议:修改
--ass-border-width
为--libmedia-ass-border-width