B2G/gecko/browser/devtools/styleinspector/CssRuleView.jsm
/**
 * Copy text-related styles from one element to another.
 */
Copy text-related styles from one element to another.
Copy text - related styles from one element to another .
function copyTextStyles(aFrom, aTo)
{
  let win = aFrom.ownerDocument.defaultView;
  let style = win.getComputedStyle(aFrom);
  aTo.style.fontFamily = style.getPropertyCSSValue("font-family").cssText;
  aTo.style.fontSize = style.getPropertyCSSValue("font-size").cssText;
  aTo.style.fontWeight = style.getPropertyCSSValue("font-weight").cssText;
  aTo.style.fontStyle = style.getPropertyCSSValue("font-style").cssText;
}
function copyTextStyles ( aFrom , aTo ) { let win = aFrom . ownerDocument . defaultView ; let style = win . getComputedStyle ( aFrom ) ; aTo . style . fontFamily = style . getPropertyCSSValue ( "font-family" ) . cssText ; aTo . style . fontSize = style . getPropertyCSSValue ( "font-size" ) . cssText ; aTo . style . fontWeight = style . getPropertyCSSValue ( "font-weight" ) . cssText ; aTo . style . fontStyle = style . getPropertyCSSValue ( "font-style" ) . cssText ; }
Copy text-related styles from one element to another.
Copy text - related styles from one element to another .