Skip to content

Commit

Permalink
fix: update unsafe/non guideline scale ssr guide
Browse files Browse the repository at this point in the history
  • Loading branch information
yue4u committed Feb 13, 2025
1 parent aeb1e1d commit ad349b8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/icons/src/SSR.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ pixiv-icon {
--scale: 3;
}

/* NOTICE: 現状と attr(... number) ほぼ変とのブラウザも少ない */
&[unsafe-non-guideline-scale] {
--scale: attr(unsafe-non-guideline-scale number);
/* NOTICE: 現状とサポートブラウザが少ない */
@supports (--scale: attr(unsafe-non-guideline-scale)) {
&[unsafe-non-guideline-scale] {
--scale: attr(unsafe-non-guideline-scale);
}
}
```

Expand Down

0 comments on commit ad349b8

Please sign in to comment.