Skip to content

Commit d9c9744

Browse files
committed
Add logical CSS to contentBox tests
1 parent 2ef8ff5 commit d9c9744

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

packages/react-strict-dom/src/native/stylex/__tests__/__snapshots__/fixContentBox-test.js.snap

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,19 @@ exports[`fixContentBox boxSizing: content-box: height 1`] = `
3232
}
3333
`;
3434

35+
exports[`fixContentBox boxSizing: content-box: logical 1`] = `
36+
{
37+
"borderBlockWidth": 5,
38+
"borderInlineWidth": 5,
39+
"height": 100,
40+
"paddingBlock": 10,
41+
"paddingInline": 20,
42+
"paddingInlineEnd": 30,
43+
"paddingLeft": 40,
44+
"width": 140,
45+
}
46+
`;
47+
3548
exports[`fixContentBox boxSizing: content-box: maxHeight 1`] = `
3649
{
3750
"borderWidth": 2,

packages/react-strict-dom/src/native/stylex/__tests__/fixContentBox-test.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,17 @@ describe('fixContentBox', () => {
7070
width: 100,
7171
height: 100
7272
},
73+
logical: {
74+
boxSizing: 'content-box',
75+
borderBlockWidth: 5,
76+
borderInlineWidth: 5,
77+
paddingBlock: 10,
78+
paddingInline: 20,
79+
paddingInlineEnd: 30,
80+
paddingLeft: 40,
81+
width: 100,
82+
height: 100
83+
},
7384
auto: {
7485
boxSizing: 'content-box',
7586
borderWidth: 2,
@@ -100,6 +111,7 @@ describe('fixContentBox', () => {
100111
expect(fixContentBox(styles.minWidth)).toMatchSnapshot('minWidth');
101112
expect(fixContentBox(styles.minHeight)).toMatchSnapshot('minHeight');
102113
expect(fixContentBox(styles.allDifferent)).toMatchSnapshot('allDifferent');
114+
expect(fixContentBox(styles.logical)).toMatchSnapshot('logical');
103115
expect(fixContentBox(styles.auto)).toMatchSnapshot('auto');
104116
expect(fixContentBox(styles.null)).toMatchSnapshot('null');
105117
expect(fixContentBox(styles.string)).toMatchSnapshot('string');

0 commit comments

Comments
 (0)