Skip to content

Commit e9426d0

Browse files
authored
Use correct values for float-start/end and clear-start/end (#15261)
This PR fixes the `float-start/end` and `clear-start/end` utilities to use `inline-start` and `inline-end` instead of `start` and `end`, which aren't valid values. Fixes #15255. Co-authored-by: Adam Wathan <[email protected]>
1 parent 9736506 commit e9426d0

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

packages/tailwindcss/src/utilities.test.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,26 +1360,26 @@ test('row-end', async () => {
13601360
test('float', async () => {
13611361
expect(await run(['float-start', 'float-end', 'float-right', 'float-left', 'float-none']))
13621362
.toMatchInlineSnapshot(`
1363-
".float-end {
1364-
float: end;
1365-
}
1363+
".float-end {
1364+
float: inline-end;
1365+
}
13661366
1367-
.float-left {
1368-
float: left;
1369-
}
1367+
.float-left {
1368+
float: left;
1369+
}
13701370
1371-
.float-none {
1372-
float: none;
1373-
}
1371+
.float-none {
1372+
float: none;
1373+
}
13741374
1375-
.float-right {
1376-
float: right;
1377-
}
1375+
.float-right {
1376+
float: right;
1377+
}
13781378
1379-
.float-start {
1380-
float: start;
1381-
}"
1382-
`)
1379+
.float-start {
1380+
float: inline-start;
1381+
}"
1382+
`)
13831383
expect(
13841384
await run([
13851385
'float',
@@ -1413,7 +1413,7 @@ test('clear', async () => {
14131413
}
14141414
14151415
.clear-end {
1416-
clear: end;
1416+
clear: inline-end;
14171417
}
14181418
14191419
.clear-left {
@@ -1429,7 +1429,7 @@ test('clear', async () => {
14291429
}
14301430
14311431
.clear-start {
1432-
clear: start;
1432+
clear: inline-start;
14331433
}"
14341434
`)
14351435
expect(

packages/tailwindcss/src/utilities.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -719,17 +719,17 @@ export function createUtilities(theme: Theme) {
719719
/**
720720
* @css `float`
721721
*/
722-
staticUtility('float-start', [['float', 'start']])
723-
staticUtility('float-end', [['float', 'end']])
722+
staticUtility('float-start', [['float', 'inline-start']])
723+
staticUtility('float-end', [['float', 'inline-end']])
724724
staticUtility('float-right', [['float', 'right']])
725725
staticUtility('float-left', [['float', 'left']])
726726
staticUtility('float-none', [['float', 'none']])
727727

728728
/**
729729
* @css `clear`
730730
*/
731-
staticUtility('clear-start', [['clear', 'start']])
732-
staticUtility('clear-end', [['clear', 'end']])
731+
staticUtility('clear-start', [['clear', 'inline-start']])
732+
staticUtility('clear-end', [['clear', 'inline-end']])
733733
staticUtility('clear-right', [['clear', 'right']])
734734
staticUtility('clear-left', [['clear', 'left']])
735735
staticUtility('clear-both', [['clear', 'both']])

0 commit comments

Comments
 (0)