B2G/gecko/layout/reftests/svg/image/util.js
//  (d) has the given preserveAspectRatio=[aAlign aMeetOrSlice] attribute
(d) has the given preserveAspectRatio=[aAlign aMeetOrSlice] attribute
( d ) has the given preserveAspectRatio = [ aAlign aMeetOrSlice ] attribute
function generateSymbolElementForParams(aSymbolID, aHref,
                                        aAlign, aMeetOrSlice) {
  var use = document.createElementNS(SVGNS, "use");
  use.setAttributeNS(XLINKNS, "href", aHref);
  var symbol = document.createElementNS(SVGNS, "symbol");
  symbol.setAttribute("id", aSymbolID);
  symbol.setAttribute("viewBox", "0 0 10 10");
  symbol.setAttribute("preserveAspectRatio", aAlign + " " + aMeetOrSlice);
  symbol.appendChild(use);
  return symbol;
}
function generateSymbolElementForParams ( aSymbolID , aHref , aAlign , aMeetOrSlice ) { var use = document . createElementNS ( SVGNS , "use" ) ; use . setAttributeNS ( XLINKNS , "href" , aHref ) ; var symbol = document . createElementNS ( SVGNS , "symbol" ) ; symbol . setAttribute ( "id" , aSymbolID ) ; symbol . setAttribute ( "viewBox" , "0 0 10 10" ) ; symbol . setAttribute ( "preserveAspectRatio" , aAlign + " " + aMeetOrSlice ) ; symbol . appendChild ( use ) ; return symbol ; }
(d) has the given preserveAspectRatio=[aAlign aMeetOrSlice] attribute
( d ) has the given preserveAspectRatio = [ aAlign aMeetOrSlice ] attribute