From 538fdf0dbf9c03487e2aea98663c72e5a32dfa1e Mon Sep 17 00:00:00 2001 From: Pavlo Huk Date: Sat, 30 Aug 2025 22:59:50 +0300 Subject: [PATCH 1/2] fix: allow static position --- src/__tests__/vendor/tailwind/layout.test.tsx | 3 +-- src/compiler/declarations.ts | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/__tests__/vendor/tailwind/layout.test.tsx b/src/__tests__/vendor/tailwind/layout.test.tsx index 7ace228a..d879271b 100644 --- a/src/__tests__/vendor/tailwind/layout.test.tsx +++ b/src/__tests__/vendor/tailwind/layout.test.tsx @@ -667,8 +667,7 @@ describe("Layout - Position", () => { }); test("static", async () => { expect(await renderCurrentTest()).toStrictEqual({ - props: {}, - warnings: { values: { position: "static" } }, + props: { style: { position: "static" } }, }); }); test("fixed", async () => { diff --git a/src/compiler/declarations.ts b/src/compiler/declarations.ts index 2ed3b745..c38da7e5 100644 --- a/src/compiler/declarations.ts +++ b/src/compiler/declarations.ts @@ -2047,7 +2047,11 @@ export function parsePosition( { value }: DeclarationType<"position">, builder: StylesheetBuilder, ) { - if (value.type === "absolute" || value.type === "relative") { + if ( + value.type === "absolute" || + value.type === "relative" || + value.type === "static" + ) { return value.type; } From 80de5e0e3d6bf5e0d4d5f8560a1015737f5a228f Mon Sep 17 00:00:00 2001 From: Mark Lawlor Date: Sun, 31 Aug 2025 19:32:10 +1000 Subject: [PATCH 2/2] fix: accessibility test --- src/__tests__/vendor/tailwind/accessibility.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/__tests__/vendor/tailwind/accessibility.test.tsx b/src/__tests__/vendor/tailwind/accessibility.test.tsx index a0ee999a..696bef5c 100644 --- a/src/__tests__/vendor/tailwind/accessibility.test.tsx +++ b/src/__tests__/vendor/tailwind/accessibility.test.tsx @@ -29,12 +29,12 @@ describe("Accessibility - Screen Readers", () => { margin: 0, overflow: "visible", padding: 0, + position: "static", }, }, warnings: { properties: ["clip", "white-space"], values: { - position: "static", width: "auto", height: "auto", },