code: def styleattribute(self, element):
          
          css_text = element.get('style')
          if css_text:
              return cssutils.css.CSSStyleDeclaration(cssText=css_text)
          else:
              return None
docs: returns css.CSSStyleDeclaration of inline styles, for html: @style