Unverified Commit 76402057 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3108071 by tstoeckler, longwave, idebr: Remove IE9 workaround from...

Issue #3108071 by tstoeckler, longwave, idebr: Remove IE9 workaround from responsive-image.html.twig
parent b126c02e
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -20,15 +20,9 @@
{% else %}
  <picture>
    {% if sources %}
      {#
      Internet Explorer 9 doesn't recognise source elements that are wrapped in
      picture tags. See http://scottjehl.github.io/picturefill/#ie9
      #}
      <!--[if IE 9]><video style="display: none;"><![endif]-->
      {% for source_attributes in sources %}
        <source{{ source_attributes }}/>
      {% endfor %}
      <!--[if IE 9]></video><![endif]-->
    {% endif %}
    {# The controlling image, with the fallback image in srcset. #}
    {{ img_element }}
+0 −3
Original line number Diff line number Diff line
@@ -287,9 +287,6 @@ protected function doTestResponsiveImageFieldFormatters($scheme, $empty_styles =
    $this->drupalGet('node/' . $nid);
    if (!$empty_styles) {
      $this->assertRaw('/styles/medium/');
      // Make sure the IE9 workaround is present.
      $this->assertRaw('<!--[if IE 9]><video style="display: none;"><![endif]-->');
      $this->assertRaw('<!--[if IE 9]></video><![endif]-->');
      // Assert the empty image is present.
      $this->assertRaw('data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==');
      $thumbnail_style = ImageStyle::load('thumbnail');
+0 −6
Original line number Diff line number Diff line
@@ -18,15 +18,9 @@
{% else %}
  <picture>
    {% if sources %}
      {#
      Internet Explorer 9 doesn't recognise source elements that are wrapped in
      picture tags. See http://scottjehl.github.io/picturefill/#ie9
      #}
      <!--[if IE 9]><video style="display: none;"><![endif]-->
      {% for source_attributes in sources %}
        <source{{ source_attributes }}/>
      {% endfor %}
      <!--[if IE 9]></video><![endif]-->
    {% endif %}
    {# The controlling image, with the fallback image in srcset. #}
    {{ img_element }}