Dirk67
I think you get it (somehow) wrong (?)
It would also feel wrong to make a 2x picture, but mark it as a 1.5x
the scrset '1x' / '1.5x' / '2x' values do
not declare (or 'mark') to the browser what size a picture is,
but instead at what dpr (of the display) the browser may load the given picture...
you may even write
srcset="testbild_3123x2555.jpg 2x, testbild_320x245.jpg 1x"
or
srcset="testbild_3123x2555.jpg 1x, testbild_320x245.jpg 2x"
and both works without a hassle (not useful of course )
(the browser doesn't care how big or what content the jpg is)
Then if you would change that srcset list to:
3,2,1.5,1.1,1
it would result in:
images/resized/image_600x300.jpg 3x,
images/resized/image_400x200.jpg 2x,
images/resized/image_300x150.jpg 1.5x,
images/resized/image_220x110.jpg 1.1x,
images/resized/image_200x100.jpg 1x
nope,
as I wrote above:
all the rest of the html-code stays the same, and the bigger jpg-file is still the same as well with the exact doubled resolution of the original thumbnail
all stays the same:
there are still 2 jpg's only, where the bigger one is double-resolution than the original
with the 'scrset' you only tell the browser at wich display-dpr to load which (of the two) pictures,
= at wich display-dpr to "switch over",
(and in fact the browsers switch over not at a dpr of 2.0 -> but much earlier at 1.1 (firefox) or 1.5 (chrome) already as I explained in my post above)
Then if you would change that srcset list to:
3, 2, 1.5, 1.1, 1
no,
I don't wanted to have a list,
I just wanted to make only the second value (only globally) selectable (or fixed to 1.5),
so there are still only two scrset values in the html of with the first one is '1x' always ...
you can check it with the browser-internal zoom-function,
just make two pics with different content (or one green and one red) and watch what happens when turning the browsers zoom-level up or down a lot -> when the picture will be switched over and so on ...
try this with '1x' and '2x' and then with an alternative '1x' and '1.5x' -scrset-configuration (but still the same jpg's),
try with chrome and firefox,
with the '1x' and '1.5x' -configuration chrome will switch over a little earlier. that's the only difference you will recognize
All (modst) the examples of srcset usage where it use a 'times' value (1x, 2x, etc) don't do anything with 1.5x or the sorts.
see here for example:
www.dev-diaries.com/social-posts/respons...images-with-src-set/
css-tricks.com/a-guide-to-the-responsive-images-syntax-in-html/
3rd link from my first post on this thread:
developer.mozilla.org/en-US/docs/Learn/H...ifferent_resolutions
__________________________________________
tbc: I don't expect you to realize this feature if you don't feel good with this,
this is just a small detail, that is not so important,
and should not delay you in any way from finishing the whole "modals for J4" project