Skip to main content

html_legacy_dimension_to_css

Function html_legacy_dimension_to_css 

Source
fn html_legacy_dimension_to_css(raw: &str) -> Option<String>
Expand description

HTML5レガシーwidth/height属性値をCSS長さへ変換する(“rules for parsing dimension values“の簡略版)。%で終われば百分率、それ以外は先頭の数字列を pxとして扱う("400""400px"。末尾の単位無しゴミは許容)。