Files
LCUI/tests/fixtures/test_background.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

26 lines
581 B
CSS

/*
* tests/fixtures/test_background.css
*
* Background image geometry: a fixed box with a cover/center image and a
* resizable parent used to check that layout changes re-resolve the crop.
*/
.test-background-parent {
display: block;
width: 200px;
}
.test-background-parent-narrow {
width: 100px;
}
.test-background {
display: block;
width: 100%;
height: 100px;
background-image: url("test_background.png");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}