Skip to content

Commit d156e34

Browse files
committed
Add test for disable-inline-width on amp-img
1 parent 3b3bfb9 commit d156e34

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/php/test-tag-and-attribute-sanitizer.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2452,6 +2452,11 @@ static function() {
24522452
null,
24532453
],
24542454

2455+
'disable-inline-width' => [
2456+
'<amp-img layout="intrinsic" height="160" width="480" disable-inline-width src="https://example.com/elva-fairy-800w.jpg" srcset="https://example.com/elva-fairy-480w.jpg 480w, https://example.com/elva-fairy-800w.jpg 800w" sizes="(max-width: 600px) 480px, 800px"></amp-img>',
2457+
null,
2458+
],
2459+
24552460
'amp-inline-gallery' => [
24562461
'
24572462
<amp-inline-gallery layout="container">

0 commit comments

Comments
 (0)