code: func (element *Element) setAttributesFromStyle(declarations []*css.Declaration) {
  	// for each style declarations
  	for _, declaration := range declarations {
  		if eltAttr := styleToAttr[declaration.Property]; eltAttr != nil {
  			// check if element is allowed for that attribute
  			for _, eltAllowed := range eltAttr.elements {
  				if element.elt.Nodes[0].Data == eltAllowed {
  					element.elt.SetAttr(eltAttr.attr, declaration.Value)
  
  					break
  				}
  			}
  		}
  	}
  }
docs: // Set additional attributes from style declarations