Function layout_2013::display_list::background::placement
source ยท pub fn placement(
bg: &Background,
viewport_size: Size2D<Au>,
absolute_bounds: Rect<Au>,
intrinsic_size: Option<Size2D<Au>>,
border: SideOffsets2D<Au>,
border_padding: SideOffsets2D<Au>,
border_radii: BorderRadius,
index: usize,
) -> Option<BackgroundPlacement>
Expand description
Determines where to place an element background image or gradient.
Images have their resolution as intrinsic size while gradients have no intrinsic size.
Return None
if the background size is zero, otherwise a BackgroundPlacement
.