78TEST "0dppx from-image"
79PASS img.style.cssText is ""
80TEST "from-image 0dppx"
81PASS img.style.cssText is ""
82TEST "1dppx from-image"
83PASS img.style.cssText is "image-resolution: 1dppx from-image; "
84PASS img.offsetWidth is 16
85PASS img.offsetHeight is 16
86TEST "from-image 1dppx"
87PASS img.style.cssText is "image-resolution: from-image 1dppx; "
88PASS img.offsetWidth is 16
89PASS img.offsetHeight is 16
90TEST "2dppx from-image"
91PASS img.style.cssText is "image-resolution: 2dppx from-image; "
92PASS img.offsetWidth is 8
93PASS img.offsetHeight is 8
94TEST "from-image 2dppx"
95PASS img.style.cssText is "image-resolution: from-image 2dppx; "
96PASS img.offsetWidth is 8
97PASS img.offsetHeight is 8
98TEST "3dppx from-image"
99PASS img.style.cssText is "image-resolution: 3dppx from-image; "
100PASS img.offsetWidth is 5
101PASS img.offsetHeight is 5
102TEST "from-image 3dppx"
103PASS img.style.cssText is "image-resolution: from-image 3dppx; "
104PASS img.offsetWidth is 5
105PASS img.offsetHeight is 5
106TEST "4dppx from-image"
107PASS img.style.cssText is "image-resolution: 4dppx from-image; "
108PASS img.offsetWidth is 4
109PASS img.offsetHeight is 4
110TEST "from-image 4dppx"
111PASS img.style.cssText is "image-resolution: from-image 4dppx; "
112PASS img.offsetWidth is 4
113PASS img.offsetHeight is 4
114TEST "0dpi from-image"
115PASS img.style.cssText is ""
116TEST "from-image 0dpi"
117PASS img.style.cssText is ""
118TEST "96dpi from-image"
119PASS img.style.cssText is "image-resolution: 96dpi from-image; "
120PASS img.offsetWidth is 16
121PASS img.offsetHeight is 16
122TEST "from-image 96dpi"
123PASS img.style.cssText is "image-resolution: from-image 96dpi; "
124PASS img.offsetWidth is 16
125PASS img.offsetHeight is 16
126TEST "192dpi from-image"
127PASS img.style.cssText is "image-resolution: 192dpi from-image; "
128PASS img.offsetWidth is 8
129PASS img.offsetHeight is 8
130TEST "from-image 192dpi"
131PASS img.style.cssText is "image-resolution: from-image 192dpi; "
132PASS img.offsetWidth is 8
133PASS img.offsetHeight is 8
134TEST "288dpi from-image"
135PASS img.style.cssText is "image-resolution: 288dpi from-image; "
136PASS img.offsetWidth is 5
137PASS img.offsetHeight is 5
138TEST "from-image 288dpi"
139PASS img.style.cssText is "image-resolution: from-image 288dpi; "
140PASS img.offsetWidth is 5
141PASS img.offsetHeight is 5
142TEST "384dpi from-image"
143PASS img.style.cssText is "image-resolution: 384dpi from-image; "
144PASS img.offsetWidth is 4
145PASS img.offsetHeight is 4
146TEST "from-image 384dpi"
147PASS img.style.cssText is "image-resolution: from-image 384dpi; "
148PASS img.offsetWidth is 4
149PASS img.offsetHeight is 4
150TEST "150dpi from-image"
151PASS img.style.cssText is "image-resolution: 150dpi from-image; "
152PASS img.offsetWidth is 10
153PASS img.offsetHeight is 10
154TEST "from-image 150dpi"
155PASS img.style.cssText is "image-resolution: from-image 150dpi; "
156PASS img.offsetWidth is 10
157PASS img.offsetHeight is 10
158TEST "300dpi from-image"
159PASS img.style.cssText is "image-resolution: 300dpi from-image; "
160PASS img.offsetWidth is 5
161PASS img.offsetHeight is 5
162TEST "from-image 300dpi"
163PASS img.style.cssText is "image-resolution: from-image 300dpi; "
164PASS img.offsetWidth is 5
165PASS img.offsetHeight is 5
166TEST "450dpi from-image"
167PASS img.style.cssText is "image-resolution: 450dpi from-image; "
168PASS img.offsetWidth is 3
169PASS img.offsetHeight is 3
170TEST "from-image 450dpi"
171PASS img.style.cssText is "image-resolution: from-image 450dpi; "
172PASS img.offsetWidth is 3
173PASS img.offsetHeight is 3
174TEST "600dpi from-image"
175PASS img.style.cssText is "image-resolution: 600dpi from-image; "
176PASS img.offsetWidth is 2
177PASS img.offsetHeight is 2
178TEST "from-image 600dpi"
179PASS img.style.cssText is "image-resolution: from-image 600dpi; "
180PASS img.offsetWidth is 2
181PASS img.offsetHeight is 2
182TEST "0dpcm from-image"
183PASS img.style.cssText is ""
184TEST "from-image 0dpcm"
185PASS img.style.cssText is ""
186TEST "37.7dpcm from-image"
187PASS img.style.cssText is "image-resolution: 37.7dpcm from-image; "
188PASS img.offsetWidth is 16
189PASS img.offsetHeight is 16
190TEST "from-image 37.7dpcm"
191PASS img.style.cssText is "image-resolution: from-image 37.7dpcm; "
192PASS img.offsetWidth is 16
193PASS img.offsetHeight is 16
194TEST "75.5dpcm from-image"
195PASS img.style.cssText is "image-resolution: 75.5dpcm from-image; "
196PASS img.offsetWidth is 8
197PASS img.offsetHeight is 8
198TEST "from-image 75.5dpcm"
199PASS img.style.cssText is "image-resolution: from-image 75.5dpcm; "
200PASS img.offsetWidth is 8
201PASS img.offsetHeight is 8
202TEST "113.3dpcm from-image"
203PASS img.style.cssText is "image-resolution: 113.3dpcm from-image; "
204PASS img.offsetWidth is 5
205PASS img.offsetHeight is 5
206TEST "from-image 113.3dpcm"
207PASS img.style.cssText is "image-resolution: from-image 113.3dpcm; "
208PASS img.offsetWidth is 5
209PASS img.offsetHeight is 5
210TEST "151.1dpcm from-image"
211PASS img.style.cssText is "image-resolution: 151.1dpcm from-image; "
212PASS img.offsetWidth is 4
213PASS img.offsetHeight is 4
214TEST "from-image 151.1dpcm"
215PASS img.style.cssText is "image-resolution: from-image 151.1dpcm; "
216PASS img.offsetWidth is 4
217PASS img.offsetHeight is 4
218TEST "from-image"
219PASS img.style.cssText is "image-resolution: from-image; "
220PASS img.offsetWidth is 16
221PASS img.offsetHeight is 16