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