Skip to content

Commit

Permalink
test: add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCindy authored and andycall committed Jan 11, 2025
1 parent 430e756 commit 932b3df
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions integration_tests/specs/css/css-flexbox/flex-direction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,60 @@ describe('flex-direction', () => {
BODY.appendChild(test);


await snapshot();
});
it("has child with overflow hidden style", async () => {
let flexContainer = createElement(
'div',
{
style: {
display: 'flex',
height: '21px',
'font-size': '14px',
color: '#1b1b1b',
'white-space': 'nowrap',
'text-overflow': 'ellipsis',
'line-height': '21px'
}
},
[
createElement(
'div',
{
style: {
'font-size': '14px',
color: '#1b1b1b',
'white-space': 'nowrap',
'line-height': '21px',
'min-width': '0',
'text-overflow': 'ellipsis',
overflow: 'hidden',
'font-weight': '600',
}
},
[
createText('丝塔芙 【大白罐】舒润保湿霜453g身体乳护体乳不含烟酰胺')
]
),
createElement(
'div',
{
style: {
'font-size': '14px',
'white-space': 'nowrap',
'line-height': '21px',
flex: '1',
color: '#989898',
}
},
[
createText('(刚刚浏览过)')
]
),
]
);
BODY.appendChild(flexContainer);

await snapshot();
});
});

0 comments on commit 932b3df

Please sign in to comment.