修复:旧浏览器样式与安全操作编号兼容,复用已完成的 Windows 数据库恢复

This commit is contained in:
2026-11-05 14:08:09 +08:00
parent c2410c4ce1
commit b208f93945
18 changed files with 477 additions and 32 deletions
+5
View File
@@ -0,0 +1,5 @@
/** 不按浏览器名称判断;只对缺少现代选择器的内核启用降级样式。 */
export function needsLegacyComponentStyles(css: Pick<typeof CSS, 'supports'> | undefined = globalThis.CSS): boolean {
try { return typeof css?.supports !== 'function' || !css.supports('selector(:where(*))'); }
catch { return true; }
}