Issue #3108071 by tstoeckler, longwave, idebr: Remove IE9 workaround from responsive-image.html.twig
							parent
							
								
									b126c02e2d
								
							
						
					
					
						commit
						764020572a
					
				| 
						 | 
				
			
			@ -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 }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -287,9 +287,6 @@ class ResponsiveImageFieldDisplayTest extends ImageFieldTestBase {
 | 
			
		|||
    $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');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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 }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue