(styles: &'a ElementStyleMap<'_>, property: &str)
| 112 | /// Find a style property value from stylesheet rules (not pre-existing inline styles). |
| 113 | #[inline] |
| 114 | fn find_style_value<'a>(styles: &'a ElementStyleMap<'_>, property: &str) -> Option<&'a str> { |
| 115 | styles |
| 116 | .iter() |
| 117 | .rev() |
| 118 | .find(|(name, _, _)| *name == property) |
| 119 | .map(|(_, _, value)| *value) |
| 120 | } |
| 121 | |
| 122 | /// Find a property value in an element's inline `style` attribute (last declaration wins). |
| 123 | fn find_inline_style_value<'a>(style: &'a str, property: &str) -> Option<&'a str> { |
no test coverage detected