From 557e194dbdf119a82792fd579998caa062c77310 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 12 Aug 2024 23:48:30 +0200 Subject: Preserve aspect ratio of images When posible, change the image size so the aspect ratio is always preserved. This is only posible when one or both dimensions have some room to play. When both dimensions are not fixed, a naive algorithm tries to satisfy all {min,max}-{width,height} and aspect ratio constraints, but it may fail. In that case, the aspect ratio is not preserved. Fixes the HTML tests img-aspect-ratio and img-max-bounds. --- test/html/Makefile.am | 2 -- 1 file changed, 2 deletions(-) (limited to 'test') diff --git a/test/html/Makefile.am b/test/html/Makefile.am index 644a0b26..2585b783 100644 --- a/test/html/Makefile.am +++ b/test/html/Makefile.am @@ -45,8 +45,6 @@ TESTS = \ XFAIL_TESTS = \ render/div-100-percent-with-padding.html \ render/float-img-justify.html \ - render/img-aspect-ratio.html \ - render/img-max-bounds.html \ render/margin-auto.html \ render/max-width-html.html \ render/min-width-html.html \ -- cgit v1.2.3