Function layout_2013::display_list::border::corner_radius

source ยท
fn corner_radius(
    radius: &BorderCornerRadius,
    containing_size: Size2D<Au>,
) -> Size2D<Au>
Expand description

Computes a border radius size against the containing size.

Note that percentages in border-radius are resolved against the relevant box dimension instead of only against the width per 1:

Percentages: Refer to corresponding dimension of the border box.