Skip to content

Commit bce0481

Browse files
authored
Add logical properties support for float and clear (#12480)
1 parent ec0fe42 commit bce0481

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

src/corePlugins.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,8 @@ export let corePlugins = {
684684

685685
float: ({ addUtilities }) => {
686686
addUtilities({
687+
'.float-start': { float: 'inline-start' },
688+
'.float-end': { float: 'inline-end' },
687689
'.float-right': { float: 'right' },
688690
'.float-left': { float: 'left' },
689691
'.float-none': { float: 'none' },
@@ -692,6 +694,8 @@ export let corePlugins = {
692694

693695
clear: ({ addUtilities }) => {
694696
addUtilities({
697+
'.clear-start': { clear: 'inline-start' },
698+
'.clear-end': { clear: 'inline-end' },
695699
'.clear-left': { clear: 'left' },
696700
'.clear-right': { clear: 'right' },
697701
'.clear-both': { clear: 'both' },

tests/plugins/__snapshots__/clear.test.js.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
exports[`should test the 'clear' plugin 1`] = `
44
"
5+
.clear-start {
6+
clear: inline-start;
7+
}
8+
9+
.clear-end {
10+
clear: inline-end;
11+
}
12+
513
.clear-left {
614
clear: left;
715
}

tests/plugins/__snapshots__/float.test.js.snap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
exports[`should test the 'float' plugin 1`] = `
44
"
5+
.float-start {
6+
float: inline-start;
7+
}
8+
9+
.float-end {
10+
float: inline-end;
11+
}
12+
513
.float-right {
614
float: right;
715
}

0 commit comments

Comments
 (0)