From df3ed4822cbbdb7c5553ad9f03ecdbd53654aa65 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 16 Aug 2024 18:30:04 +0200 Subject: Add img-aspect-ratio-relative-inside-fixed test --- test/html/Makefile.am | 7 +++--- .../img-aspect-ratio-relative-inside-fixed.html | 25 ++++++++++++++++++++++ ...img-aspect-ratio-relative-inside-fixed.ref.html | 25 ++++++++++++++++++++++ 3 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 test/html/render/img-aspect-ratio-relative-inside-fixed.html create mode 100644 test/html/render/img-aspect-ratio-relative-inside-fixed.ref.html (limited to 'test/html') diff --git a/test/html/Makefile.am b/test/html/Makefile.am index 013429f6..52ddf7f7 100644 --- a/test/html/Makefile.am +++ b/test/html/Makefile.am @@ -16,15 +16,16 @@ TESTS = \ render/float-img-justify.html \ render/github-infinite-loop.html \ render/hackernews.html \ - render/img-aspect-ratio.html \ - render/img-aspect-ratio-div.html \ render/img-aspect-ratio-absolute.html \ + render/img-aspect-ratio-div.html \ + render/img-aspect-ratio-relative-inside-fixed.html \ + render/img-aspect-ratio.html \ render/img-max-bounds.html \ render/main-style.html \ render/margin-auto.html \ render/max-width-body.html \ - render/max-width-div.html \ render/max-width-div-clamp.html \ + render/max-width-div.html \ render/max-width-html.html \ render/max-width-nested-div.html \ render/meta-refresh-0-no-url.html \ diff --git a/test/html/render/img-aspect-ratio-relative-inside-fixed.html b/test/html/render/img-aspect-ratio-relative-inside-fixed.html new file mode 100644 index 00000000..51536eac --- /dev/null +++ b/test/html/render/img-aspect-ratio-relative-inside-fixed.html @@ -0,0 +1,25 @@ + + + + Test image aspect ratio when both dimensions are relative and container is fixed + + + +

The image must fill the complete div even if that means distorting it. + The image specifies the size as 100% of the container in both dimensions and + the container has a fixed size.

+
+ +
+ + diff --git a/test/html/render/img-aspect-ratio-relative-inside-fixed.ref.html b/test/html/render/img-aspect-ratio-relative-inside-fixed.ref.html new file mode 100644 index 00000000..e9a45ca7 --- /dev/null +++ b/test/html/render/img-aspect-ratio-relative-inside-fixed.ref.html @@ -0,0 +1,25 @@ + + + + Test image aspect ratio when both dimensions are relative and container is fixed + + + +

The image must fill the complete div even if that means distorting it. + The image specifies the size as 100% of the container in both dimensions and + the container has a fixed size.

+
+ +
+ + -- cgit v1.2.3