Patrick Brosset @patrickbrosset.com 路 Nov 27

Among other things, the object-view-box CSS property makes image editors super easy to implement (once you figure out the zoom/pan maths). 鉃★笍 object-view-box: xywh(100px 70px 300px 200px); 馃憤 this issue if you need this feature in all browsers 馃敆 github.com/web-platform... (Chromium only for now)

2 likes 3 replies

?

Replies

Sara Soueidan 路 Nov 27

is that the CSS version of the SVG viewBox? cz I've been waiting for that one for years! I want to be able to change the SVG viewBox from CSS 馃ゲ

Ivan 膶uri膰 路 Nov 28

What benefits does this have compared to implementing a `contain: strict` with a transform inside?

Andreas M酶ller 路 Nov 27

The hard part was always the zoom pan math. It is something enough people have done so you can just ask AI