From 582d27413faef25d9abd4f1f6dfc18f5e9b8cc5c Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Sun, 24 Aug 2025 18:26:05 +0200 Subject: Add html test for form elements with display:none --- test/html/Makefile.am | 1 + test/html/render/form-display-none.html | 45 +++++++++++++++++++++++++++++ test/html/render/form-display-none.ref.html | 17 +++++++++++ 3 files changed, 63 insertions(+) create mode 100644 test/html/render/form-display-none.html create mode 100644 test/html/render/form-display-none.ref.html diff --git a/test/html/Makefile.am b/test/html/Makefile.am index 648d96c9..fc959b1f 100644 --- a/test/html/Makefile.am +++ b/test/html/Makefile.am @@ -15,6 +15,7 @@ TESTS = \ render/b-div.html \ render/div-100-percent-with-padding.html \ render/float-img-justify.html \ + render/form-display-none.html \ render/github-infinite-loop.html \ render/hackernews.html \ render/img-aspect-ratio-absolute.html \ diff --git a/test/html/render/form-display-none.html b/test/html/render/form-display-none.html new file mode 100644 index 00000000..fec9c96c --- /dev/null +++ b/test/html/render/form-display-none.html @@ -0,0 +1,45 @@ + + + + Test form inputs with display:none + + + +
+

There are some elements below, but you shouldn't see any. Disable CSS to + see them.

+ +
+
+ + + + + + + + + + + +
+
+
+

The ones below are outside the form

+ +
+ + diff --git a/test/html/render/form-display-none.ref.html b/test/html/render/form-display-none.ref.html new file mode 100644 index 00000000..a8e43c1b --- /dev/null +++ b/test/html/render/form-display-none.ref.html @@ -0,0 +1,17 @@ + + + + Test form inputs with display:none + + + +
+

There are some elements below, but you shouldn't see any. Disable CSS to + see them.

+
+

The ones below are outside the form

+
+ + -- cgit v1.2.3