summaryrefslogtreecommitdiffstats
path: root/layout/xul/reftest/image-size.xhtml
blob: 9a4e00429a694b4ca94738e9fa8f5ab0bb5e2f34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
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>