aboutsummaryrefslogtreecommitdiff
path: root/test/html
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-08-12 23:48:30 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-10-17 20:38:15 +0200
commit557e194dbdf119a82792fd579998caa062c77310 (patch)
tree964352a29b0f8bd7246a263a786a186b99d05023 /test/html
parent25a381f61308794f20796596a02ae67a1d55b7fc (diff)
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.
Diffstat (limited to 'test/html')
-rw-r--r--test/html/Makefile.am2
1 files changed, 0 insertions, 2 deletions
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 \