summaryrefslogtreecommitdiffstats
path: root/layout/reftests/image-region
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /layout/reftests/image-region
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/image-region')
-rw-r--r--layout/reftests/image-region/image-region-ref.pngbin0 -> 174 bytes
-rw-r--r--layout/reftests/image-region/image-region-ref.xhtml14
-rw-r--r--layout/reftests/image-region/image-region.css19
-rw-r--r--layout/reftests/image-region/image-region.pngbin0 -> 189 bytes
-rw-r--r--layout/reftests/image-region/image-region.xhtml14
-rw-r--r--layout/reftests/image-region/reftest.list1
6 files changed, 48 insertions, 0 deletions
diff --git a/layout/reftests/image-region/image-region-ref.png b/layout/reftests/image-region/image-region-ref.png
new file mode 100644
index 0000000000..418cea798b
--- /dev/null
+++ b/layout/reftests/image-region/image-region-ref.png
Binary files differ
diff --git a/layout/reftests/image-region/image-region-ref.xhtml b/layout/reftests/image-region/image-region-ref.xhtml
new file mode 100644
index 0000000000..b17f5b3135
--- /dev/null
+++ b/layout/reftests/image-region/image-region-ref.xhtml
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<!--
+ Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/licenses/publicdomain/
+ -->
+<?xml-stylesheet href="image-region.css" type="text/css"?>
+<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ id="main"
+ class="reftest-image-region">
+ <hbox id="ref">
+ <image id="image1" />
+ <hbox style="-moz-box-flex: 1000" />
+ </hbox>
+</window>
diff --git a/layout/reftests/image-region/image-region.css b/layout/reftests/image-region/image-region.css
new file mode 100644
index 0000000000..bfbceeb557
--- /dev/null
+++ b/layout/reftests/image-region/image-region.css
@@ -0,0 +1,19 @@
+/*
+ Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/licenses/publicdomain/
+ */
+hbox#test > image {
+ list-style-image: url("image-region.png");
+}
+
+hbox#test > #image1 {
+ -moz-image-region: rect(1px, 19px, 9px, 1px);
+}
+
+hbox#ref > image {
+ list-style-image: none;
+}
+
+hbox#ref > #image1 {
+ list-style-image: url("image-region-ref.png");
+}
diff --git a/layout/reftests/image-region/image-region.png b/layout/reftests/image-region/image-region.png
new file mode 100644
index 0000000000..ca1276d027
--- /dev/null
+++ b/layout/reftests/image-region/image-region.png
Binary files differ
diff --git a/layout/reftests/image-region/image-region.xhtml b/layout/reftests/image-region/image-region.xhtml
new file mode 100644
index 0000000000..142b10b8b4
--- /dev/null
+++ b/layout/reftests/image-region/image-region.xhtml
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<!--
+ Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/licenses/publicdomain/
+ -->
+<?xml-stylesheet href="image-region.css" type="text/css"?>
+<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ id="main"
+ class="reftest-image-region">
+ <hbox id="test">
+ <image id="image1" />
+ <hbox style="-moz-box-flex: 1000" />
+ </hbox>
+</window>
diff --git a/layout/reftests/image-region/reftest.list b/layout/reftests/image-region/reftest.list
new file mode 100644
index 0000000000..52f3f94415
--- /dev/null
+++ b/layout/reftests/image-region/reftest.list
@@ -0,0 +1 @@
+== chrome://reftest/content/image-region/image-region.xhtml chrome://reftest/content/image-region/image-region-ref.xhtml