You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the reason for this was that the height value will be incorrect in most cases. By definition, the different sources of a picture tag will have different aspect ratios, so there can‘t be a correct height.
It can be argued that I should just choose the height of one variant or the one of the fallback image, but I‘m not sure what to choose here. Apart from that it would probably be a breaking change...
There probably will be a solution to that problem in the HTML5 specification:
Btw. the viewhelper is broken when you use an image that doesn't have a width in sys_file_metadata (which can be the case when you're trying to use a file that isn't in your file storage but a static resource from your /Resources/Public/Images folder..)
sms-responsive-images/Classes/Utility/ResponsiveImagesUtility.php
Line 221 in 1a559c1
You could also do
$fallbackTag->addAttribute('height', $fallbackImage->getProperty('height'));
like it's done in f:media. Or am I missing something?
The text was updated successfully, but these errors were encountered: