implement cssText

This commit is contained in:
Glenn Watson 2015-07-31 10:41:18 +10:00 committed by Greg Guthe
parent 40b2d424c0
commit ff995d739c
8 changed files with 42 additions and 37 deletions

View file

@ -700,7 +700,7 @@ impl Element {
// this sync method is called upon modification of the style_attribute property,
// therefore, it should not trigger subsequent mutation events
fn sync_property_with_attrs_style(&self) {
pub fn sync_property_with_attrs_style(&self) {
let style_str = if let &Some(ref declarations) = &*self.style_attribute().borrow() {
declarations.to_css_string()
} else {