修复:旧浏览器样式与安全操作编号兼容,复用已完成的 Windows 数据库恢复
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user