Changes between Initial Version and Version 1 of Ticket #34955, comment 8
- Timestamp:
- 12/11/2015 04:32:52 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34955, comment 8
initial v1 5 5 If c>a and the srcset image was used, the axb image would be replaced by ax(d*a/c), so check if |b-d*a/c|<=1. 6 6 7 If c<a, the only time the srcset image will be used if it has been shrunk with CSS to at most c wide already. So it's actually being display at cx(b*c/a) initially and being replaced by cxd, so check if |d-b*c/a|<=1.7 If c<a, the only time the srcset image will be used if it has been shrunk with CSS to at most c wide already. So it's actually being displayed at cx(b*c/a) initially and being replaced by cxd, so check if |d-b*c/a|<=1. 8 8 9 I think this solves the original issue of 480x188 and 4000x1563 - because rather than comparing 4000x15 37with 4000x1567.66 which fails, you'd be comparing 480x188 and 480x187.56, which succeeds.9 I think this solves the original issue of 480x188 and 4000x1563 - because rather than comparing 4000x1563 with 4000x1567.66 which fails, you'd be comparing 480x188 and 480x187.56, which succeeds.