Skip to content

Commit

Permalink
[TASK] add test for different source image
Browse files Browse the repository at this point in the history
Relates to: #53
  • Loading branch information
achimfritz committed Jun 26, 2024
1 parent 34f0e14 commit c775468
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Resources/Private/Templates/Test.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,20 @@ <h2>Image with 3 sizes for the 3 given breakpoints in TypoScript setup</h2>
&lt;i:image src="EXT:picture/Resources/Public/Test/Picture.png" width="400" pictureClass="myPictureClass" sources="{lg: {width: 800}, md: {width: 600}, sm: {width: 400}}" alt="Testimage with 3 breakpoints referenced by name" /&gt;
</f:variable>


<h2>Different source image</h2>

<f:variable name="html">
<i:image src="EXT:picture/Resources/Public/Test/Picture.png" width="400"
sources="{sm: {src: 'EXT:picture/Resources/Public/Test/Picture_alt.png', width: 200}}"
/>
</f:variable>
<f:variable name="fluid">
&lt;i:image src="EXT:picture/Resources/Public/Test/Picture.png" width="400"
sources="{sm: {src: 'EXT:picture/Resources/Public/Test/Picture_alt.png', width: 200}}"
/&gt;
</f:variable>

<f:render
section="Element"
arguments="{html: html, fluid: fluid}"
Expand Down

0 comments on commit c775468

Please sign in to comment.