Skip to content

Commit 2152c7f

Browse files
Scrumromainmenke
authored andcommitted
Fix incorrect set value for border-block-width
1 parent 4316813 commit 2152c7f

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

plugins/postcss-logical/src/lib/transform-border.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
}),
1212
decl.clone({
1313
prop: `border-bottom${decl.prop.replace(matchLogicalBorderSide, '$2')}`,
14-
value: values[0]
14+
value: values[1] || values[0]
1515
})
1616
],
1717

plugins/postcss-logical/test/border.css

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ test-flowing-border-width {
4545
border-width: inherit;
4646
border-inline-end-width: 4px;
4747
border-width: inherit;
48+
border-block-width: 2px 4px;
4849
}
4950

5051
test-flowing-border-radius {

plugins/postcss-logical/test/border.expect.css

+2
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ test-flowing-border-width {
9393
border-width: inherit;
9494
border-width: inherit;
9595
border-width: inherit;
96+
border-top-width: 2px;
97+
border-bottom-width: 4px;
9698
}
9799

98100
test-flowing-border-radius:dir(ltr) {

plugins/postcss-logical/test/border.ltr.expect.css

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ test-flowing-border-width {
5050
border-width: inherit;
5151
border-right-width: 4px;
5252
border-width: inherit;
53+
border-top-width: 2px;
54+
border-bottom-width: 4px;
5355
}
5456

5557
test-flowing-border-radius {

plugins/postcss-logical/test/border.preserve.expect.css

+3
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ test-flowing-border-width {
106106
border-width: inherit;
107107
border-inline-end-width: 4px;
108108
border-width: inherit;
109+
border-top-width: 2px;
110+
border-bottom-width: 4px;
111+
border-block-width: 2px 4px;
109112
}
110113

111114
test-flowing-border-radius:dir(ltr) {

0 commit comments

Comments
 (0)