Skip to content

Commit 28dab5e

Browse files
authored
Merge pull request tailwindlabs#1286 from florianbouvot/master
Fix box-sizing values
2 parents 84c3bf3 + bad1033 commit 28dab5e

3 files changed

Lines changed: 22 additions & 22 deletions

File tree

__tests__/fixtures/tailwind-output-important.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3340,11 +3340,11 @@ video {
33403340
}
33413341

33423342
.box-border {
3343-
box-sizing: border !important;
3343+
box-sizing: border-box !important;
33443344
}
33453345

33463346
.box-content {
3347-
box-sizing: content !important;
3347+
box-sizing: content-box !important;
33483348
}
33493349

33503350
.cursor-auto {
@@ -13021,11 +13021,11 @@ video {
1302113021
}
1302213022

1302313023
.sm\:box-border {
13024-
box-sizing: border !important;
13024+
box-sizing: border-box !important;
1302513025
}
1302613026

1302713027
.sm\:box-content {
13028-
box-sizing: content !important;
13028+
box-sizing: content-box !important;
1302913029
}
1303013030

1303113031
.sm\:cursor-auto {
@@ -22703,11 +22703,11 @@ video {
2270322703
}
2270422704

2270522705
.md\:box-border {
22706-
box-sizing: border !important;
22706+
box-sizing: border-box !important;
2270722707
}
2270822708

2270922709
.md\:box-content {
22710-
box-sizing: content !important;
22710+
box-sizing: content-box !important;
2271122711
}
2271222712

2271322713
.md\:cursor-auto {
@@ -32385,11 +32385,11 @@ video {
3238532385
}
3238632386

3238732387
.lg\:box-border {
32388-
box-sizing: border !important;
32388+
box-sizing: border-box !important;
3238932389
}
3239032390

3239132391
.lg\:box-content {
32392-
box-sizing: content !important;
32392+
box-sizing: content-box !important;
3239332393
}
3239432394

3239532395
.lg\:cursor-auto {
@@ -42067,11 +42067,11 @@ video {
4206742067
}
4206842068

4206942069
.xl\:box-border {
42070-
box-sizing: border !important;
42070+
box-sizing: border-box !important;
4207142071
}
4207242072

4207342073
.xl\:box-content {
42074-
box-sizing: content !important;
42074+
box-sizing: content-box !important;
4207542075
}
4207642076

4207742077
.xl\:cursor-auto {

__tests__/fixtures/tailwind-output.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3340,11 +3340,11 @@ video {
33403340
}
33413341

33423342
.box-border {
3343-
box-sizing: border;
3343+
box-sizing: border-box;
33443344
}
33453345

33463346
.box-content {
3347-
box-sizing: content;
3347+
box-sizing: content-box;
33483348
}
33493349

33503350
.cursor-auto {
@@ -13021,11 +13021,11 @@ video {
1302113021
}
1302213022

1302313023
.sm\:box-border {
13024-
box-sizing: border;
13024+
box-sizing: border-box;
1302513025
}
1302613026

1302713027
.sm\:box-content {
13028-
box-sizing: content;
13028+
box-sizing: content-box;
1302913029
}
1303013030

1303113031
.sm\:cursor-auto {
@@ -22703,11 +22703,11 @@ video {
2270322703
}
2270422704

2270522705
.md\:box-border {
22706-
box-sizing: border;
22706+
box-sizing: border-box;
2270722707
}
2270822708

2270922709
.md\:box-content {
22710-
box-sizing: content;
22710+
box-sizing: content-box;
2271122711
}
2271222712

2271322713
.md\:cursor-auto {
@@ -32385,11 +32385,11 @@ video {
3238532385
}
3238632386

3238732387
.lg\:box-border {
32388-
box-sizing: border;
32388+
box-sizing: border-box;
3238932389
}
3239032390

3239132391
.lg\:box-content {
32392-
box-sizing: content;
32392+
box-sizing: content-box;
3239332393
}
3239432394

3239532395
.lg\:cursor-auto {
@@ -42067,11 +42067,11 @@ video {
4206742067
}
4206842068

4206942069
.xl\:box-border {
42070-
box-sizing: border;
42070+
box-sizing: border-box;
4207142071
}
4207242072

4207342073
.xl\:box-content {
42074-
box-sizing: content;
42074+
box-sizing: content-box;
4207542075
}
4207642076

4207742077
.xl\:cursor-auto {

src/plugins/boxSizing.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ export default function() {
22
return function({ addUtilities, variants }) {
33
addUtilities(
44
{
5-
'.box-border': { 'box-sizing': 'border' },
6-
'.box-content': { 'box-sizing': 'content' },
5+
'.box-border': { 'box-sizing': 'border-box' },
6+
'.box-content': { 'box-sizing': 'content-box' },
77
},
88
variants('boxSizing')
99
)

0 commit comments

Comments
 (0)