Skip to main content

computed_property

Function computed_property 

Source
pub fn computed_property(attrs: &Attributes, name: &str) -> Option<String>
Expand description

Read one resolved CSS property off attrs as a canonical string, for the dynamic DOM computed_style("prop") getter. Covers the common layout / paint / text properties; an unmodeled property returns None. Colors render as #rrggbb / #rrggbbaa, lengths as Npx / N% / auto, scalars as their decimal form.