Skip to main content

strip_style_priority

Function strip_style_priority 

Source
fn strip_style_priority(raw: &str) -> (&str, bool)
Expand description

生の宣言値末尾の !important(大小文字・空白ゆれ許容)を切り離す。 (値本体, important か) を返す。CSS カスケード側(css.rs)の !important パーサとは別実装だが、element.style.getPropertyValue/ .getPropertyPriority(丸ごと未対応だった。2026-07-16 発見)専用の 軽量版。