Re:First Look At The CSS object-view-box Property
by dgb23 on Sunday May 22, 2022 @04:32AM
(#31466082)
What you’re describing is one of the possible workarounds, yes. Veterans have become accustomed to doing these things over the years.
But generally speaking I think that this kind of feature is very useful. It conveys intent, so browsers can optimise things if they choose, and developers get to have cleaner code for free.
Secondly there’s plenty of devs and future devs out there who appreciate that there’s a clear way to do this. Workarounds always have caveats and don’t necessarily play nicely with other features.
On the other hand, I do like that this unifies the functionality of svgs and other html elements more. We’ve been seeing svg-like additions to css for a while now, and they’ve been welcome.
Overall I suppose I’m happy for more consistency even if I won’t be using this except in niche cases.