Structs§
Enums§
Statics§
Functions§
- box_
align_ 🔒self - flex アイテムの align-self(個別交差軸整列)。未指定/auto なら None(コンテナの align-items に従う)。
- box_
aspect_ 🔒ratio - aspect-ratio の (num, den) を取得する。
- box_
flex_ 🔒basis - box_
flex_ 🔒basis_ is_ percentage - flex アイテムの flex-basis(主軸初期サイズ)。
flex-basis優先、無ければflexショートハンドの長さトークン(px/%)。auto/content/未指定は None(width/height に従う)。main_sizeは % 解決の基準(コンテナ主軸長)。 flex-basis が%、またはflex: <number>由来(0%相当)か。主軸方向の確定した長さが無い コンテナ(高さ auto の列)ではcontentとして扱う(CSS Flexbox §7.2.3)。 - box_
flex_ 🔒grow - box_
flex_ 🔒grow_ f32 - flex アイテムの flex-grow 係数(小数対応)。
- box_
flex_ 🔒shrink - box_
flex_ 🔒shrink_ f32 - box_
font_ 🔒size - LayoutBox が表す要素の計算済み font-size (px)。デフォルト 16.0。
- box_
has_ 🔒explicit - 指定プロパティが明示指定されているか(auto/空は未指定扱い)。
- box_
intrinsic_ 🔒ratio - 置換要素(
img/canvas)の自然サイズから固有アスペクト比(rw, rh)を返す。 - box_
is_ 🔒rtl_ raw - 世界の論理→物理写像を通さない
direction: rtl判定(縦書き内の子の向き判定用)。 - box_
order 🔒 - flex/grid アイテムの
order(描画順の並び替え)。未指定/不正は 0。負値可。 - box_
style_ 🔒value - LayoutBox が表す要素の CSS プロパティ値(flex の子サイズ判定用)。
- box_
style_ 🔒value_ raw - 世界の論理→物理写像を通さない生値参照(
direction等の世界構築・比較用)。 - box_
style_ 🔒value_ ref box_style_valueの借用版(値を写さない。レイアウトの頻出経路用)。- box_
tag_ 🔒name - LayoutBox が表す要素のタグ名 (text ノードや AnonymousBlock は None)。
- cell_
spans 🔒 - セルの colspan / rowspan を読む (HTML 属性)。1 未満や巨大値はクランプ。
- grid_
item_ 🔒align - inherited_
world_ 🔒of - 継承値ベースで要素の世界ビット列(
writing_mode::world_ofと同形式)を返す。 - is_
flex_ 🔒length_ token - flex アイテムの flex-shrink 係数(
flex-shrink優先、無ければflexショートハンドの 2 番目、無指定は 1 = 既定で縮小可)。flex:noneは 0、flex:N(単一数値)は 1。 トークンがflexショートハンドの basis に使える長さ値(px/%/em/rem/vh/vw)かどうかを 判定する。以前はpx/%/emの3種のみ対応しており、flex: 1 40vwのような vw/vh/rem 単位の basis が length として認識されず、box_flex_shrinkでは誤って shrink の数値パースに回されて(失敗し既定値1にフォールバック)、box_flex_basisでは 該当トークンが見つからず basis が丸ごと失われる、という実害のあるバグがあった (transition/animationの時間値誤分類と同種の「対応単位の一部だけを見る」バグ)。 末尾を剥がした残りが実際に数値としてパースできることまで確認する。 - is_
replaced_ 🔒element - grid アイテムの整列値を解決する。
self_prop(justify-self/align-self)が auto/未指定なら、コンテナのitems_default(justify-items/align-items の値)へ委譲。 返り値を正規化: “start”/“end”/“center”/“stretch”。flex-start/flex-end/self-start/self-endも start/end に正規化する。既定は stretch。 - is_
safe_ 🔒align - 整列指定が
safe付きか。 - parse_
svg_ 🔒data_ uri_ ratio - register_
image_ natural_ size - 【2026-08-05】ネットワークから取得した画像の自然サイズを登録する。
- resolve_
basis_ 🔒len - resolve_
basis_ 🔒len_ with_ font - flex-basis のトークン(“40px” / “25%” / “2em”)を px へ解決する。
font_pxは要素自身の算出フォントサイズ(em単位の計算に使用)。 - resolve_
grid_ 🔒axis_ align - グリッドコンテナの論理軸(
is_justify=true: 列/インライン軸,false: 行/ブロック軸)に対する アイテムの整列キーワード("start" | "end" | "center" | "stretch")を返す。self-start/self-end/left/rightをコンテナ・子双方のwriting-modeとdirectionから解決する。 - strip_
overflow_ 🔒kw safe/unsafe接頭辞を除いた整列キーワード。- world_
swap_ 🔒ratio - 縦書きの世界では aspect-ratio(物理の 幅 / 高さ)を論理(inline / block = 高さ / 幅)へ入れ替える。