Skip to main content

box_inset_len

Function box_inset_len 

Source
pub(crate) fn box_inset_len(
    b: &LayoutBox<'_>,
    side: &str,
    base: i32,
) -> Option<i32>
Expand description

top/right/bottom/leftside はその名前そのもの)を解決する。個別の longhand が 明示されていればそれを優先し、無ければ inset ショートハンド(margin と同じ1〜4値展開) から対応する辺を取り出してフォールバックする。