Suggest removing drupal_attributes($variables['dimensions']) from the following function assuming they aren't really needed.

function theme_picture_source($variables) {
  $output = array();
  if (isset($variables['media']) && !empty($variables['media'])) {
    $output[] = '<span data-media="' . $variables['media'] . '" data-src="' . $variables['src'] . '" ' . drupal_attributes($variables['dimensions']) . '></span>';
  }
  else {
    $output[] = '<span data-src="' . $variables['src'] . '" ' . drupal_attributes($variables['dimensions']) . '></span>';
  }
  return implode("\n", $output);
}

Comments

attiks’s picture

They are needed to avoid reflow, but we could try changing them to data-width, data-height if we don't re introduce the reflow problem.

Patches are welcome

attiks’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Since picture element is not allowing width/height they are removed in version 2.0