From 4668784d048ca11540fd4c4e07f776cc746d20cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=98?= Date: Mon, 25 Dec 2023 00:21:53 +0800 Subject: [PATCH] :bug: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `@supports (clip-path: path("")) ` 最新浏览器中 空值不再被支持 --- package.json | 2 +- src/lib/components/checkbox.styl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 34cdaea9..6805d20e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nanarinostyl", "description": "style lib", - "version": "0.2.3", + "version": "0.2.4", "main": "./dist/index.css", "scripts": { "dev": "astro dev --host", diff --git a/src/lib/components/checkbox.styl b/src/lib/components/checkbox.styl index 13720da1..ddbcf9b2 100644 --- a/src/lib/components/checkbox.styl +++ b/src/lib/components/checkbox.styl @@ -101,7 +101,7 @@ border-top none border-right none // 支持 `path()` 的浏览器增强效果 - @supports (clip-path:path("")) + @supports (clip-path path("M0,0 0,1 1,1 1,0z")) & clip-path path("M 0 1.5 \\ A 1.5 1.5 0 1 1 3 1 \\ @@ -119,5 +119,5 @@ background _rgb(var(--white)) height 2px // 支持 `path()` 的浏览器才显示圆角 和上面的增强相符合 - @supports (clip-path:path("")) + @supports (clip-path path("M0,0 0,1 1,1 1,0z")) border-radius 2px