From 5d5803c3a70f61b07ef0855f0c533d0f3db1e537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Barr=C3=A9?= Date: Mon, 10 Jun 2024 02:23:22 +0200 Subject: [PATCH] Tailwind 3.4.4 --- src/coreRules.ts | 13 ++- tests/snapshots/codegen-omit.css | 52 +++++++++++ tests/snapshots/codegen.css | 156 +++++++++++++++++++++++++++++++ 3 files changed, 218 insertions(+), 3 deletions(-) diff --git a/src/coreRules.ts b/src/coreRules.ts index e32de5c..250f451 100644 --- a/src/coreRules.ts +++ b/src/coreRules.ts @@ -106,11 +106,18 @@ export const getCoreRules = ({ "col-start", theme.gridColumnStart, "grid-column-start", + { supportsNegativeValues: true }, ), - gridColumnEnd: themeRule("col-end", theme.gridColumnEnd, "grid-column-end"), + gridColumnEnd: themeRule("col-end", theme.gridColumnEnd, "grid-column-end", { + supportsNegativeValues: true, + }), gridRow: themeRule("row", theme.gridRow, "grid-row"), - gridRowStart: themeRule("row-start", theme.gridRowStart, "grid-row-start"), - gridRowEnd: themeRule("row-end", theme.gridRowEnd, "grid-row-end"), + gridRowStart: themeRule("row-start", theme.gridRowStart, "grid-row-start", { + supportsNegativeValues: true, + }), + gridRowEnd: themeRule("row-end", theme.gridRowEnd, "grid-row-end", { + supportsNegativeValues: true, + }), float: [ ["float-start", [["float", "inline-start"]]], ["float-end", [["float", "inline-end"]]], diff --git a/tests/snapshots/codegen-omit.css b/tests/snapshots/codegen-omit.css index 39e5cb0..ec0c393 100644 --- a/tests/snapshots/codegen-omit.css +++ b/tests/snapshots/codegen-omit.css @@ -993,6 +993,19 @@ .col-span-11{} .col-span-12{} .col-span-full{} +.-col-start-1{} +.-col-start-2{} +.-col-start-3{} +.-col-start-4{} +.-col-start-5{} +.-col-start-6{} +.-col-start-7{} +.-col-start-8{} +.-col-start-9{} +.-col-start-10{} +.-col-start-11{} +.-col-start-12{} +.-col-start-13{} .col-start-1{} .col-start-2{} .col-start-3{} @@ -1007,6 +1020,19 @@ .col-start-12{} .col-start-13{} .col-start-auto{} +.-col-end-1{} +.-col-end-2{} +.-col-end-3{} +.-col-end-4{} +.-col-end-5{} +.-col-end-6{} +.-col-end-7{} +.-col-end-8{} +.-col-end-9{} +.-col-end-10{} +.-col-end-11{} +.-col-end-12{} +.-col-end-13{} .col-end-1{} .col-end-2{} .col-end-3{} @@ -1035,6 +1061,19 @@ .row-span-11{} .row-span-12{} .row-span-full{} +.-row-start-1{} +.-row-start-2{} +.-row-start-3{} +.-row-start-4{} +.-row-start-5{} +.-row-start-6{} +.-row-start-7{} +.-row-start-8{} +.-row-start-9{} +.-row-start-10{} +.-row-start-11{} +.-row-start-12{} +.-row-start-13{} .row-start-1{} .row-start-2{} .row-start-3{} @@ -1049,6 +1088,19 @@ .row-start-12{} .row-start-13{} .row-start-auto{} +.-row-end-1{} +.-row-end-2{} +.-row-end-3{} +.-row-end-4{} +.-row-end-5{} +.-row-end-6{} +.-row-end-7{} +.-row-end-8{} +.-row-end-9{} +.-row-end-10{} +.-row-end-11{} +.-row-end-12{} +.-row-end-13{} .row-end-1{} .row-end-2{} .row-end-3{} diff --git a/tests/snapshots/codegen.css b/tests/snapshots/codegen.css index 31c1b9f..9cb329f 100644 --- a/tests/snapshots/codegen.css +++ b/tests/snapshots/codegen.css @@ -3508,6 +3508,45 @@ .col-span-full { grid-column: 1 / -1; } +.-col-start-1 { + grid-column-start: -1; +} +.-col-start-2 { + grid-column-start: -2; +} +.-col-start-3 { + grid-column-start: -3; +} +.-col-start-4 { + grid-column-start: -4; +} +.-col-start-5 { + grid-column-start: -5; +} +.-col-start-6 { + grid-column-start: -6; +} +.-col-start-7 { + grid-column-start: -7; +} +.-col-start-8 { + grid-column-start: -8; +} +.-col-start-9 { + grid-column-start: -9; +} +.-col-start-10 { + grid-column-start: -10; +} +.-col-start-11 { + grid-column-start: -11; +} +.-col-start-12 { + grid-column-start: -12; +} +.-col-start-13 { + grid-column-start: -13; +} .col-start-1 { grid-column-start: 1; } @@ -3550,6 +3589,45 @@ .col-start-auto { grid-column-start: auto; } +.-col-end-1 { + grid-column-end: -1; +} +.-col-end-2 { + grid-column-end: -2; +} +.-col-end-3 { + grid-column-end: -3; +} +.-col-end-4 { + grid-column-end: -4; +} +.-col-end-5 { + grid-column-end: -5; +} +.-col-end-6 { + grid-column-end: -6; +} +.-col-end-7 { + grid-column-end: -7; +} +.-col-end-8 { + grid-column-end: -8; +} +.-col-end-9 { + grid-column-end: -9; +} +.-col-end-10 { + grid-column-end: -10; +} +.-col-end-11 { + grid-column-end: -11; +} +.-col-end-12 { + grid-column-end: -12; +} +.-col-end-13 { + grid-column-end: -13; +} .col-end-1 { grid-column-end: 1; } @@ -3634,6 +3712,45 @@ .row-span-full { grid-row: 1 / -1; } +.-row-start-1 { + grid-row-start: -1; +} +.-row-start-2 { + grid-row-start: -2; +} +.-row-start-3 { + grid-row-start: -3; +} +.-row-start-4 { + grid-row-start: -4; +} +.-row-start-5 { + grid-row-start: -5; +} +.-row-start-6 { + grid-row-start: -6; +} +.-row-start-7 { + grid-row-start: -7; +} +.-row-start-8 { + grid-row-start: -8; +} +.-row-start-9 { + grid-row-start: -9; +} +.-row-start-10 { + grid-row-start: -10; +} +.-row-start-11 { + grid-row-start: -11; +} +.-row-start-12 { + grid-row-start: -12; +} +.-row-start-13 { + grid-row-start: -13; +} .row-start-1 { grid-row-start: 1; } @@ -3676,6 +3793,45 @@ .row-start-auto { grid-row-start: auto; } +.-row-end-1 { + grid-row-end: -1; +} +.-row-end-2 { + grid-row-end: -2; +} +.-row-end-3 { + grid-row-end: -3; +} +.-row-end-4 { + grid-row-end: -4; +} +.-row-end-5 { + grid-row-end: -5; +} +.-row-end-6 { + grid-row-end: -6; +} +.-row-end-7 { + grid-row-end: -7; +} +.-row-end-8 { + grid-row-end: -8; +} +.-row-end-9 { + grid-row-end: -9; +} +.-row-end-10 { + grid-row-end: -10; +} +.-row-end-11 { + grid-row-end: -11; +} +.-row-end-12 { + grid-row-end: -12; +} +.-row-end-13 { + grid-row-end: -13; +} .row-end-1 { grid-row-end: 1; }