Skip to main content

resolve_all_shorthand

Function resolve_all_shorthand 

Source
pub(crate) fn resolve_all_shorthand(
    specified_values: &mut BTreeMap<String, String>,
)
Expand description

all: unset/initial/revert(すべてのプロパティを一括リセットするショートハンド)を解決する。 簡略化: 本来はカスケードの中で all より後に書かれた個別プロパティだけが生き残るが、 この処理系はプロパティ名ごとに独立してカスケード解決した後の specified_values しか 見えないため、そこまで厳密な順序判定はできない。実用上ほとんどの利用パターン (.reset{all:unset} のように単独で使う)をカバーする近似として、all が CSS-wide keyword なら、カスタムプロパティ(-- 始まり)と all 自身を除く 全プロパティを削除する。