Files
LCUI/tests/fixtures/test_flex_hidden_gap.css
Liu 1f46778893 fix(ui): stabilize layout measurement and style refresh
- restore intrinsic sizes before measuring flex and block children
- resolve percentage widths against indefinite parents as auto
- reflow parents when child content changes and refresh background geometry
- ignore hidden flex items in gap insertion and use spec static positions
- keep text paint size in sync with the current capture scale
2026-11-13 21:56:39 +08:00

25 lines
447 B
CSS

/*
* tests/fixtures/test_flex_hidden_gap.css
*
* A row with one hidden sibling and one fixed-size visible item. The gap
* must only be inserted between in-flow items.
*/
.test-hg-row {
display: inline-flex;
flex-direction: row;
gap: 6px;
}
.test-hg-hidden {
display: none;
width: 33px;
height: 20px;
}
.test-hg-visible {
width: 28px;
height: 20px;
flex-shrink: 1;
}