@@ -310,7 +310,7 @@ It's returned this way because the result is asynchronous. The "compositor" ment
310
310
above runs asynchronously from the page. It can figure out the size it's actually going to use and then send you that size *out of band*.
311
311
312
312
Unfortunately while the ` ResizeObserver` is available in all modern browser the
313
- ` devicePixelContentBoxSize` is only available in Chrome/Edge so far . Here's how
313
+ ` devicePixelContentBoxSize` is not available in Safari yet . Here's how
314
314
to use it.
315
315
316
316
We create a ` ResizeObserver` and we pass it a function to call anytime any elements
@@ -329,7 +329,7 @@ important and a little confusing. We could ask it to tell us when the
329
329
is some percentage size of the window like the common 100% of our line example
330
330
above. In that case our canvas will always be the same number of device pixels
331
331
regardless of zoom level. The window hasn't changed size when we zoom so there's
332
- still the same number of device pixels. On the otherhand the ` content- box` will
332
+ still the same number of device pixels. On the other hand the ` content- box` will
333
333
change as we zoom because it's measured in CSS pixels and so as we zoom, more or
334
334
less CSS pixels fit in the number of device pixels.
335
335
@@ -436,16 +436,16 @@ on the right.
436
436
437
437
Resize this window, or better, open it in a new window and zoom in an out using
438
438
the keys mentioned above. At different zoom levels resize the window, and notice
439
- only the bottom one works in all cases (in Chrome/Edge). Note the higher your
439
+ only the bottom one works in all cases (in Chrome/Edge/Firefox ). Note the higher your
440
440
device's ` devicePixelRatio` the harder it may be to see problems. What you
441
441
should see is an unvarying pattern on left and on the right. If you see harsh
442
442
patterns or you see differing darkness like a gradient then it's not working.
443
- Since it will only work in Chrome/Edge you'll need to try it there to see it
443
+ Since it will only work in Chrome/Edge/Firefox you'll need to try it there to see it
444
444
work.
445
445
446
446
Also note, some OSes (MacOS) provide an OS level scaling option that is mostly
447
447
hidden from apps. In this case you'll see a slight pattern on the bottom example
448
- (assuming your in Chrome/Edge) but it will be a regular pattern.
448
+ (assuming your in Chrome/Edge/Firefox ) but it will be a regular pattern.
449
449
450
450
This brings up the issue that there is no good solution on the other browsers but, do you
451
451
need a real solution? The majority of WebGL apps do something like draw some things in 3D
0 commit comments