summaryrefslogtreecommitdiffstats
path: root/layout/xul/reftest/image-size.xhtml
diff options
context:
space:
mode:
Diffstat (limited to 'layout/xul/reftest/image-size.xhtml')
-rw-r--r--layout/xul/reftest/image-size.xhtml104
1 files changed, 104 insertions, 0 deletions
diff --git a/layout/xul/reftest/image-size.xhtml b/layout/xul/reftest/image-size.xhtml
new file mode 100644
index 0000000000..9a4e00429a
--- /dev/null
+++ b/layout/xul/reftest/image-size.xhtml
@@ -0,0 +1,104 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
+<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+<hbox align="end">
+ <image src="image4x3.png"/>
+ <image src="image4x3.png" style="width: 80px; height: 20px"/>
+ <image src="image4x3.png" style="width: 10px; height: 70px"/>
+ <image src="image4x3.png" style="width: 80px"/>
+ <image src="image4x3.png" style="height: 60px"/>
+ <image src="image4x3.png" style="width: 20px"/>
+ <image src="image4x3.png" style="height: 15px"/>
+ <image src="image4x3.png" style="border: 8px solid green;"/>
+ <image src="image4x3.png" style="width: 80px; border: 8px solid yellow;"/>
+ <image src="image4x3.png" style="height: 58px; border: 8px solid green;"/>
+ <image src="image4x3.png" style="width: 24px; border: 8px solid yellow;"/>
+ <image src="image4x3.png" style="height: 22px; border: 8px solid green;"/>
+ <image src="image4x3.png"
+ style="width: 74px; border: 1px solid yellow; border-top-width: 1px; border-right-width: 2px; border-bottom-width: 4px; border-left-width: 8px;"/>
+ <image src="image4x3.png"
+ style="height: 11px; border: 1px solid green; border-top-width: 1px; border-right-width: 2px; border-bottom-width: 4px; border-left-width: 8px;"/>
+</hbox>
+
+<hbox align="end">
+ <image src="image4x3.png" style="width: auto; height: auto;"/>
+ <image src="image4x3.png" style="width: 80px; height: 20px;"/>
+ <image src="image4x3.png" style="width: 10px; height: 70px;"/>
+ <image src="image4x3.png" style="width: 80px;"/>
+ <image src="image4x3.png" style="height: 60px;"/>
+ <image src="image4x3.png" style="width: 20px;"/>
+ <image src="image4x3.png" style="height: 15px;"/>
+ <image src="image4x3.png" style="width: 60px; height: 25px;"/>
+ <image src="image4x3.png" style="width: 20px; height: 75px;"/>
+ <image src="image4x3.png" style="width: 80px; padding: 8px;"/>
+ <image src="image4x3.png" style="height: 58px; padding: 8px;"/>
+ <image src="image4x3.png" style="width: 24px; padding: 8px;"/>
+ <image src="image4x3.png" style="height: 22px; padding: 8px;"/>
+ <image src="image4x3.png" style="width: 67px; padding: 4px 2px 8px 1px"/>
+ <image src="image4x3.png" style="height: 18px; padding: 4px 2px 8px 1px"/>
+</hbox>
+
+<hbox align="end">
+ <image src="image4x3.png" style="max-width: 20px"/>
+</hbox>
+
+<hbox align="end">
+ <image src="image4x3.png" style="max-height: 15px"/>
+</hbox>
+
+<hbox align="end">
+ <image src="image4x3.png" style="max-width: 30px; max-height: 25px"/>
+</hbox>
+
+<hbox align="end">
+ <image src="image4x3.png" style="max-width: 20px;"/>
+</hbox>
+
+<hbox align="end">
+ <image src="image4x3.png" style="max-height: 15px;"/>
+</hbox>
+
+<hbox align="end">
+ <image src="image4x3.png" style="max-width: 30px; max-height: 25px;"/>
+</hbox>
+
+<hbox align="end">
+ <image src="image4x3.png" style="width: 24px; border: 8px solid green;"/>
+</hbox>
+<hbox align="end">
+ <image src="image4x3.png" style="max-height: 22px; border: 8px solid green;"/>
+</hbox>
+
+<hbox align="end">
+ <image src="image4x3.png" style="min-width: 20px;"/>
+ <image src="image4x3.png" style="min-height: 20px;"/>
+ <image src="image4x3.png" style="min-width: 20px; min-height: 25px"/>
+ <image src="image4x3.png" style="min-width: 60px; border: 8px solid green;"/>
+ <image src="image4x3.png" style="min-height: 88px; border: 8px solid yellow;"/>
+ <image src="image4x3.png" style="min-width: 90px; min-height: 76px; border: 8px solid green;"/>
+ <image src="image4x3.png" style="min-width: 112px; min-height: 76px; border: 8px solid yellow;"/>
+ <image src="image4x3.png"
+ style="min-width: 106px; border: 1px solid yellow; border-top-width: 1px; border-right-width: 2px; border-bottom-width: 4px; border-left-width: 8px;"/>
+</hbox>
+
+<hbox align="end">
+ <image src="image4x3.png" style="min-width: 60px;"/>
+ <image src="image4x3.png" style="min-height: 90px;"/>
+ <image src="image4x3.png" style="min-width 41px; min-height: 45px;"/>
+ <image src="image4x3.png" style="min-width: 60px; padding: 8px;"/>
+ <image src="image4x3.png" style="min-height: 88px; padding: 8px;"/>
+ <image src="image4x3.png" style="min-width: 90px; min-height: 76px; padding: 8px;"/>
+ <image src="image4x3.png" style="min-width: 112px; min-height: 76px; padding: 8px;"/>
+ <image src="" style="list-style-image: url(image4x3.png); border: 1px solid blue"/>
+ <image id="dyn-1" src="image4x3.png" style="border: 1px solid green"/>
+ <image id="dyn-2" style="list-style-image: url(image4x3.png); border: 1px solid green"/>
+ <image style="-moz-default-appearance: checkbox; appearance: auto"/>
+</hbox>
+<script>
+ window.addEventListener("load", function() {
+ document.getElementById("dyn-1").removeAttribute("src");
+ document.getElementById("dyn-2").style.listStyleImage = "";
+ });
+</script>
+</window>