Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
responsive_image.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Feb 2015 at 21:30 UTC
Updated:
4 Mar 2015 at 11:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
attiks commentedComment #2
jelle_sEt voilà ;-)
Comment #3
wim leersSorry.
Comment #4
attiks commented#3 ++
Comment #5
jelle_s#3 & #4: LOL, yeah, I figured as soon as I posted it, so I already started on it. Here it is with tests included.
Comment #6
attiks commentedtypo formattes?
typo ImgStyle?
Comment #7
jelle_sComment #8
attiks commented1 out of 2 isn't bad ;-)
RTBC is bot is happy
Comment #10
wim leersNit: the $image_uri line is misplaced. Copy/paste error? Let's put it (and its comment) a bit lower, where it logically belongs.
Comment #11
jelle_sAh yes, that comment was totally irrelevant. It was indeed a copy-paste error.
Comment #12
wim leersComment #15
wim leersComment #16
alexpottIs it realistic for breakpoints to not have a media query?
Comment #17
alexpottSetting to 'needs review' to get an answer to #16
Comment #18
attiks commented#16 It is, mainly for the mobile breakpoint
Comment #19
wim leersTo clarify #18: the "narrowest" breakpoint has an empty media query. IOW: it's the default. Then for each breakpoint that is wider, a media query is set.
Back to RTBC since #18 answers #16.
Comment #20
rainbowarrayTo further clarify, an empty media attribute is useful when using the sizes and srcset attribute, because sizes is used for viewport switching of images rather than a media query filling that role.
Comment #21
alexpottThis issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 097d6d3 and pushed to 8.0.x. Thanks!