mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-12-01 16:56:34 +01:00
- 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
26 lines
581 B
CSS
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;
|
|
}
|