We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 825936a commit 569dc08Copy full SHA for 569dc08
2 files changed
packages/postcss/test/__snapshots__/compat.test.ts.snap
@@ -0,0 +1,10 @@
1
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+exports[`compat > styleHandler calc 1`] = `
4
+"
5
+page{
6
+--spacing: 8rpx;
7
+--radius-3xl: 48rpx;
8
+--radius-4xl: calc(var(--spacing) * 8);
9
+}"
10
+`;
packages/postcss/test/compat.test.ts
@@ -0,0 +1,24 @@
+import { createStyleHandler } from '@/index'
+describe('compat', () => {
+ it('styleHandler calc', async () => {
+ const styleHandler = createStyleHandler({
+ isMainChunk: true,
+ cssPresetEnv: {
+ features: {
+ 'custom-properties': true,
+ 'nested-calc': true,
11
+ },
12
+ // browsers: ['defaults'],
13
14
+ })
15
+ const { css } = await styleHandler(`
16
+:root{
17
18
19
20
+}`,
21
+ )
22
+ expect(css).toMatchSnapshot()
23
24
+})
0 commit comments