 
     ## Overflow behavior
     overflow = attributeOrStyle @xml.documentElement, 'overflow'
-    if @constructor.overflowDefault? and not overflow?
+    if not overflow? and (overflowDefault = @getSetting 'overflowDefault')?
       @xml.documentElement.setAttribute 'overflow',
-        overflow = @constructor.overflowDefault
+        overflow = overflowDefault
     @overflowVisible = (overflow? and /^\s*(visible|scroll)\b/.test overflow)
     @width = @height = null
     if @viewBox?

              node.setAttribute 'width', size.width
              node.setAttribute 'height', size.height
          ## Inline
          if filedata? and Drawing.inlineImages
            type = contentType[extensionOf filename]
            if type?
              node.setAttribute "data-filename", filename

  '.css': CSSStyle
  '.styl': StylusStyle

renderDOM = (mappings, elts, settings) ->
  mappings = Mappings.from mappings
  if typeof elts == 'string'
    elts = document.querySelectorAll elts
  else if elts instanceof HTMLElement
    elts = [elts]

  ## Default to href attribute which works better in DOM.
  settings = {...defaultSettings, useHref: true, ...settings}
  ## Override settings via data-* attributes.
  for key, value of elt.dataset
    continue unless key of settings
    if typeof settings[key] == 'boolean'
      switch value = setting key
        #when 'true', 'on', 'yes'
        #  settings[key] = true
        when 'false', 'off', 'no'#, ''
          settings[key] = false
        else
          settings[key] = Boolean value
    else
      settings[key] = value

  for elt from elts
    try
      elt.style.whiteSpace = 'pre'
      filename = settings.filename
      drawing = Input.recognize filename, elt.innerText, settings
      if drawing instanceof Drawing
        dom = drawing.renderSVGDOM(mappings).documentElement
        if settings.keepParent
          elt.innerHTML = ''
          elt.appendChild dom
        else
          elt.replaceWith dom
          if settings.keepClass
            dom.setAttribute 'class', elt.className
      else
        console.warn "Parsed element with filename '#{filename}' into #{drawing.constructor.name} instead of Drawing:", elt
