Issue #3108071 by tstoeckler, longwave, idebr: Remove IE9 workaround from responsive-image.html.twig

merge-requests/2419/head
Lauri Eskola 2020-01-24 10:44:15 +02:00
parent b126c02e2d
commit 764020572a
No known key found for this signature in database
GPG Key ID: 37E6EF00B7EEF188
3 changed files with 0 additions and 15 deletions

View File

@ -20,15 +20,9 @@
{% else %} {% else %}
<picture> <picture>
{% if sources %} {% 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 %} {% for source_attributes in sources %}
<source{{ source_attributes }}/> <source{{ source_attributes }}/>
{% endfor %} {% endfor %}
<!--[if IE 9]></video><![endif]-->
{% endif %} {% endif %}
{# The controlling image, with the fallback image in srcset. #} {# The controlling image, with the fallback image in srcset. #}
{{ img_element }} {{ img_element }}

View File

@ -287,9 +287,6 @@ class ResponsiveImageFieldDisplayTest extends ImageFieldTestBase {
$this->drupalGet('node/' . $nid); $this->drupalGet('node/' . $nid);
if (!$empty_styles) { if (!$empty_styles) {
$this->assertRaw('/styles/medium/'); $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. // Assert the empty image is present.
$this->assertRaw('data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='); $this->assertRaw('data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==');
$thumbnail_style = ImageStyle::load('thumbnail'); $thumbnail_style = ImageStyle::load('thumbnail');

View File

@ -18,15 +18,9 @@
{% else %} {% else %}
<picture> <picture>
{% if sources %} {% 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 %} {% for source_attributes in sources %}
<source{{ source_attributes }}/> <source{{ source_attributes }}/>
{% endfor %} {% endfor %}
<!--[if IE 9]></video><![endif]-->
{% endif %} {% endif %}
{# The controlling image, with the fallback image in srcset. #} {# The controlling image, with the fallback image in srcset. #}
{{ img_element }} {{ img_element }}