Skip to content

Commit 48d7648

Browse files
erikverbeekErik Verbeek
andauthored
Added support for display : inline-table (tailwindlabs#3563)
* Added support for display : inline-table * Moved the inline-table class to the suggested spot and updated the tests Co-authored-by: Erik Verbeek <erik@evidencio.com>
1 parent 9e705db commit 48d7648

File tree

5 files changed

+99
-0
lines changed

5 files changed

+99
-0
lines changed

__tests__/fixtures/tailwind-output-flagged.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10812,6 +10812,10 @@ video {
1081210812
display: table;
1081310813
}
1081410814

10815+
.inline-table {
10816+
display: inline-table;
10817+
}
10818+
1081510819
.table-caption {
1081610820
display: table-caption;
1081710821
}
@@ -39416,6 +39420,10 @@ video {
3941639420
display: table;
3941739421
}
3941839422

39423+
.sm\:inline-table {
39424+
display: inline-table;
39425+
}
39426+
3941939427
.sm\:table-caption {
3942039428
display: table-caption;
3942139429
}
@@ -67977,6 +67985,10 @@ video {
6797767985
display: table;
6797867986
}
6797967987

67988+
.md\:inline-table {
67989+
display: inline-table;
67990+
}
67991+
6798067992
.md\:table-caption {
6798167993
display: table-caption;
6798267994
}
@@ -96538,6 +96550,10 @@ video {
9653896550
display: table;
9653996551
}
9654096552

96553+
.lg\:inline-table {
96554+
display: inline-table;
96555+
}
96556+
9654196557
.lg\:table-caption {
9654296558
display: table-caption;
9654396559
}
@@ -125099,6 +125115,10 @@ video {
125099125115
display: table;
125100125116
}
125101125117

125118+
.xl\:inline-table {
125119+
display: inline-table;
125120+
}
125121+
125102125122
.xl\:table-caption {
125103125123
display: table-caption;
125104125124
}
@@ -153660,6 +153680,10 @@ video {
153660153680
display: table;
153661153681
}
153662153682

153683+
.\32xl\:inline-table {
153684+
display: inline-table;
153685+
}
153686+
153663153687
.\32xl\:table-caption {
153664153688
display: table-caption;
153665153689
}

__tests__/fixtures/tailwind-output-important.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10812,6 +10812,10 @@ video {
1081210812
display: table !important;
1081310813
}
1081410814

10815+
.inline-table {
10816+
display: inline-table !important;
10817+
}
10818+
1081510819
.table-caption {
1081610820
display: table-caption !important;
1081710821
}
@@ -39416,6 +39420,10 @@ video {
3941639420
display: table !important;
3941739421
}
3941839422

39423+
.sm\:inline-table {
39424+
display: inline-table !important;
39425+
}
39426+
3941939427
.sm\:table-caption {
3942039428
display: table-caption !important;
3942139429
}
@@ -67977,6 +67985,10 @@ video {
6797767985
display: table !important;
6797867986
}
6797967987

67988+
.md\:inline-table {
67989+
display: inline-table !important;
67990+
}
67991+
6798067992
.md\:table-caption {
6798167993
display: table-caption !important;
6798267994
}
@@ -96538,6 +96550,10 @@ video {
9653896550
display: table !important;
9653996551
}
9654096552

96553+
.lg\:inline-table {
96554+
display: inline-table !important;
96555+
}
96556+
9654196557
.lg\:table-caption {
9654296558
display: table-caption !important;
9654396559
}
@@ -125099,6 +125115,10 @@ video {
125099125115
display: table !important;
125100125116
}
125101125117

125118+
.xl\:inline-table {
125119+
display: inline-table !important;
125120+
}
125121+
125102125122
.xl\:table-caption {
125103125123
display: table-caption !important;
125104125124
}
@@ -153660,6 +153680,10 @@ video {
153660153680
display: table !important;
153661153681
}
153662153682

153683+
.\32xl\:inline-table {
153684+
display: inline-table !important;
153685+
}
153686+
153663153687
.\32xl\:table-caption {
153664153688
display: table-caption !important;
153665153689
}

__tests__/fixtures/tailwind-output-no-color-opacity.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9250,6 +9250,10 @@ video {
92509250
display: table;
92519251
}
92529252

9253+
.inline-table {
9254+
display: inline-table;
9255+
}
9256+
92539257
.table-caption {
92549258
display: table-caption;
92559259
}
@@ -35298,6 +35302,10 @@ video {
3529835302
display: table;
3529935303
}
3530035304

35305+
.sm\:inline-table {
35306+
display: inline-table;
35307+
}
35308+
3530135309
.sm\:table-caption {
3530235310
display: table-caption;
3530335311
}
@@ -61303,6 +61311,10 @@ video {
6130361311
display: table;
6130461312
}
6130561313

61314+
.md\:inline-table {
61315+
display: inline-table;
61316+
}
61317+
6130661318
.md\:table-caption {
6130761319
display: table-caption;
6130861320
}
@@ -87308,6 +87320,10 @@ video {
8730887320
display: table;
8730987321
}
8731087322

87323+
.lg\:inline-table {
87324+
display: inline-table;
87325+
}
87326+
8731187327
.lg\:table-caption {
8731287328
display: table-caption;
8731387329
}
@@ -113313,6 +113329,10 @@ video {
113313113329
display: table;
113314113330
}
113315113331

113332+
.xl\:inline-table {
113333+
display: inline-table;
113334+
}
113335+
113316113336
.xl\:table-caption {
113317113337
display: table-caption;
113318113338
}
@@ -139318,6 +139338,10 @@ video {
139318139338
display: table;
139319139339
}
139320139340

139341+
.\32xl\:inline-table {
139342+
display: inline-table;
139343+
}
139344+
139321139345
.\32xl\:table-caption {
139322139346
display: table-caption;
139323139347
}

__tests__/fixtures/tailwind-output.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10812,6 +10812,10 @@ video {
1081210812
display: table;
1081310813
}
1081410814

10815+
.inline-table {
10816+
display: inline-table;
10817+
}
10818+
1081510819
.table-caption {
1081610820
display: table-caption;
1081710821
}
@@ -39416,6 +39420,10 @@ video {
3941639420
display: table;
3941739421
}
3941839422

39423+
.sm\:inline-table {
39424+
display: inline-table;
39425+
}
39426+
3941939427
.sm\:table-caption {
3942039428
display: table-caption;
3942139429
}
@@ -67977,6 +67985,10 @@ video {
6797767985
display: table;
6797867986
}
6797967987

67988+
.md\:inline-table {
67989+
display: inline-table;
67990+
}
67991+
6798067992
.md\:table-caption {
6798167993
display: table-caption;
6798267994
}
@@ -96538,6 +96550,10 @@ video {
9653896550
display: table;
9653996551
}
9654096552

96553+
.lg\:inline-table {
96554+
display: inline-table;
96555+
}
96556+
9654196557
.lg\:table-caption {
9654296558
display: table-caption;
9654396559
}
@@ -125099,6 +125115,10 @@ video {
125099125115
display: table;
125100125116
}
125101125117

125118+
.xl\:inline-table {
125119+
display: inline-table;
125120+
}
125121+
125102125122
.xl\:table-caption {
125103125123
display: table-caption;
125104125124
}
@@ -153660,6 +153680,10 @@ video {
153660153680
display: table;
153661153681
}
153662153682

153683+
.\32xl\:inline-table {
153684+
display: inline-table;
153685+
}
153686+
153663153687
.\32xl\:table-caption {
153664153688
display: table-caption;
153665153689
}

src/plugins/display.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ export default function () {
2020
'.table': {
2121
display: 'table',
2222
},
23+
'.inline-table': {
24+
display: 'inline-table',
25+
},
2326
'.table-caption': {
2427
display: 'table-caption',
2528
},

0 commit comments

Comments
 (0)