Skip to content

Commit e46cc8f

Browse files
committed
chore(test): add calc infinity case
1 parent f8565c1 commit e46cc8f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packages/postcss/test/__snapshots__/issues.test.ts.snap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,11 @@ exports[`issues > https://github.com/sonofmagic/weapp-tailwindcss/issues/695 2`]
812812
exports[`issues > https://github.com/sonofmagic/weapp-tailwindcss/issues/695 taro rpx case 1`] = `
813813
".rounded-full {
814814
border-radius: 9999px;
815+
border-radius: 9999px;
816+
border-radius: 9999px;
817+
border-radius: 9999px;
818+
border-radius: 9999px;
819+
border-radius: 9999px;
815820
}
816821
"
817822
`;

packages/postcss/test/issues.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ describe('issues', () => {
108108
it('https://github.com/sonofmagic/weapp-tailwindcss/issues/695 taro rpx case', async () => {
109109
const code = `.rounded-full {
110110
border-radius: calc(infinity * 1rpx);
111+
border-radius: calc(infinity * 5px);
112+
border-radius: calc(infinity * 3.14rpx);
113+
border-radius: calc(infinity * .6px);
114+
border-radius: calc(infinity * 100.px);
115+
border-radius: calc(infinity * 100.1px);
111116
}
112117
`
113118

0 commit comments

Comments
 (0)