WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #34955, comment 8


Ignore:
Timestamp:
12/11/2015 04:32:52 AM (4 years ago)
Author:
smerriman
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34955, comment 8

    initial v1  
    55If 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.
    66
    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.
     7If 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.
    88
    9 I think this solves the original issue of 480x188 and 4000x1563 - because rather than comparing 4000x1537 with 4000x1567.66 which fails, you'd be comparing 480x188 and 480x187.56, which succeeds.
     9I 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.