docs: def styleInheritedFromParent(node, style):
      """
      Returns the value of 'style' that is inherited from the parents of the passed-in node
  
      Warning: This method only considers presentation attributes and inline styles,
               any style sheets are ignored!
      """
      parentNode = node.parentNode
  
      # return None if we reached the Document element
      if parentNode.nodeType == Node.DOCUMENT_NODE:
          return None
  
      # check styles first (they take precedence over presentation attributes)
      styles = _getStyle(parentNode)
      if style in styles:
          value = styles[style]
          if not value == 'inherit':
              return value
  
      # check attributes
      value = parentNode.getAttribute(style)
      if value not in ['', 'inherit']:
          return parentNode.getAttribute(style)
  
      # check the next parent recursively if we did not find a value yet
      return styleInheritedFromParent(parentNode, style)