TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The sad state of browser matrix transforms

81 点作者 codefather大约 10 年前

6 条评论

moron4hire大约 10 年前
His point on Chrome's problems with scale and zoom is particularly vexing because it gets it right if you use pinch-to-zoom, but not if you use ctrl+scrollwheel to zoom. In other words, Chrome has two completely different page scaling features.
评论 #9219294 未加载
jsprogrammer大约 10 年前
Unfortunately, IE doesn't support `preserve-3d`; you have to keep track of your own stack (and prepend it to all child transforms).
blowski大约 10 年前
I think saying it&#x27;s a &#x27;sad state&#x27; is a bit dramatic. An &#x27;imperfect state&#x27; would be a better description.<p>I&#x27;ve used the matrix function a lot, and am perfectly happy with how it renders across browsers. I would be happy if it was bug-free and easier to use, but it still gives me a lot more power than if it didn&#x27;t exist.
评论 #9217390 未加载
leni536大约 10 年前
Kind of offtopic:<p>How should browsers handle transitions of transformations?<p>AFAIK in Firefox if your transformation is a composition of multiple transformations then it does a transition of each part in a way where the transformation parameter linearly changes. Like between <i>scale(2) rotate(0)</i> and <i>scale(4) rotate(90)</i> in the middle of the transformation there is <i>scale(3) rotate(45)</i>. It&#x27;s different if you define the same transformations at the two ends as matrices.<p>It&#x27;s kind if cool tho, since you can create a transition between <i>rotate(0)</i> and <i>rotate(360)</i>, however it&#x27;s not entirely clear what happens if the two ends have different transformation elements.
评论 #9217558 未加载
评论 #9217566 未加载
评论 #9218396 未加载
评论 #9221876 未加载
me1010大约 10 年前
On my Firefox browser [31.5, Debian], the rotated image worked fine.
评论 #9218062 未加载
thearn4大约 10 年前
Clicking this, I was expecting to read a damning article about the state of recent research in numerical linear algebra. Looks like I can relax.
评论 #9217835 未加载
评论 #9218360 未加载