@@ -204,7 +204,6 @@ export default function ViewPage() {
204204 onError = { ( evt ) => {
205205 onImageError ( evt ) ;
206206 } }
207- crossOrigin = "anonymous"
208207 onLoad = { ( ) => {
209208 onImageLoad ( ) ;
210209 console . log ( "via onLoad" ) ;
@@ -237,7 +236,6 @@ export default function ViewPage() {
237236 ) : (
238237 < img
239238 alt = { url }
240- crossOrigin = "anonymous"
241239 src = { url }
242240 style = { {
243241 objectFit : "cover" ,
@@ -258,28 +256,28 @@ export default function ViewPage() {
258256 </ noscript >
259257 { isDebug ? (
260258 < >
261- < p style = { { position : "absolute" , top : "0pt" , left : "8px" } } >
259+ < div style = { { position : "absolute" , top : "0pt" , left : "8px" } } >
262260 Window.inner: { globalThis . innerWidth } x{ globalThis . innerHeight }
263- </ p >
264- < p style = { { position : "absolute" , top : "14pt" , left : "8px" } } >
261+ </ div >
262+ < div style = { { position : "absolute" , top : "14pt" , left : "8px" } } >
265263 Image natural size: { imageRef . current ?. naturalWidth } x
266264 { imageRef . current ?. naturalHeight }
267- </ p >
268- < p style = { { position : "absolute" , top : "28pt" , left : "8px" } } >
265+ </ div >
266+ < div style = { { position : "absolute" , top : "28pt" , left : "8px" } } >
269267 Image display size: { imageCss [ "width" ] } x{ imageCss [ "height" ] }
270- </ p >
271- < p style = { { position : "absolute" , top : "42pt" , left : "8px" } } >
268+ </ div >
269+ < div style = { { position : "absolute" , top : "42pt" , left : "8px" } } >
272270 Zoom: cur={ currentZoom } , url={ urlZoom } , max=
273271 { calcMaxZoom ( naturalWidth , naturalHeight , containerWidth , containerHeight ) } )
274- </ p >
275- < p style = { { position : "absolute" , top : "56pt" , left : "8px" } } >
272+ </ div >
273+ < div style = { { position : "absolute" , top : "56pt" , left : "8px" } } >
276274 Container boundingClientRect: { containerRef . current ?. getBoundingClientRect ( ) . width } x
277275 { containerRef . current ?. getBoundingClientRect ( ) . height }
278- </ p >
279- < p style = { { position : "absolute" , top : "70pt" , left : "8px" } } >
276+ </ div >
277+ < div style = { { position : "absolute" , top : "70pt" , left : "8px" } } >
280278 Container client: { containerRef . current ?. clientWidth } x
281279 { containerRef . current ?. clientHeight }
282- </ p >
280+ </ div >
283281 </ >
284282 ) : null }
285283 </ div >
0 commit comments