diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2022-11-25 18:42:44 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2022-11-25 18:42:44 +0000 |
| commit | a6a799720f53d52721284c201e2dfc81610c2e40 (patch) | |
| tree | 21b2fa00a3699a753c3a97d675c5a9102e9bd477 /html/unequal.html | |
| parent | d90c0a9edb14519ccce41a25fec5c1f60bfd152d (diff) | |
| download | puzzles-a6a799720f53d52721284c201e2dfc81610c2e40.zip puzzles-a6a799720f53d52721284c201e2dfc81610c2e40.tar.gz puzzles-a6a799720f53d52721284c201e2dfc81610c2e40.tar.bz2 puzzles-a6a799720f53d52721284c201e2dfc81610c2e40.tar.xz | |
js: Correct co-ordinate-mapping function for what CSS actually does
By default, CSS uses "object-fit: fill", which means that an object is
independently scaled in both dimensions to fit its containing box.
This is simpler than what I'd assumed (which was "object-fill:
contain"). Obviously, the HTML could be changed to use a different
object-fit, in which case this code would have to detect it, but for
now following the CSS default is more correct than not.
Diffstat (limited to 'html/unequal.html')
0 files changed, 0 insertions, 0 deletions