Skip to content

Commit

Permalink
🐛
Browse files Browse the repository at this point in the history
`@supports (clip-path: path(""))
`
最新浏览器中 空值不再被支持
  • Loading branch information
nanarino committed Dec 24, 2023
1 parent 8ef2d69 commit 4668784
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/checkbox.styl
Original file line number Diff line number Diff line change
Expand Up @@ -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 \\
Expand All @@ -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

0 comments on commit 4668784

Please sign in to comment.