Skip to main content

flow_pseudo_values

Function flow_pseudo_values 

Source
pub fn flow_pseudo_values(
    parent: &BTreeMap<String, String>,
    which: &str,
) -> Option<BTreeMap<String, String>>
Expand description

流れの中に置く、空の ::before/::after の箱の値の表(display:block/flex/grid/table/ flow-root/list-item、または float。content が ''/' ' のもの)。

【2026-11-30】::before{content:'';display:block;height:20px} が箱にならず、高さ 0 だった (疑似要素の宣言は要素自身の x-before-* に畳まれ、位置指定の疑似要素だけが描画側で箱になっていた)。 ここで作る表を持つ StyledNode を、スタイル木の子(先頭/末尾)として加える(css::cascade)ので、 レイアウトは通常の子と同じに扱う。中身のある content(文字)・inline/inline-block は従来どおり別経路。