Re: [csswg-drafts] [css-transforms] Zero value in perspective() function

Note that, this change leads to interoperability issue in Firefox as 
shown in [this 
bug](https://bugzilla.mozilla.org/show_bug.cgi?id=1316236). Imgur uses
 `perspective(0)` in an animation, which leads to some rendering 
weirdness.

They do something like:
```css
@keyframes flipin {
  from { transform: perspective(500px) translate(-50%, 0) 
rotateX(-90deg) rotateY(0); }
  to { transform: perspective(0) translate(-50%, 115%) rotateX(0) 
rotateY(0); }
}
```

Browsers agree on the same weirdness if the value in `perspective` 
function is changed to `1px`. What I don't quite understand is how 
Blink handles this case. If I understand the spec correctly, even if 
it handles `perspective(0)` itself like infinite, there should still 
be intermediate value inserted between `500px` and `0`. Probably Blink
 consistently handles `0` as infinite everywhere? (But how can an 
infinite value be animatable?)

-- 
GitHub Notification of comment by upsuper
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/413#issuecomment-259846008 
using your GitHub account

Received on Friday, 11 November 2016 00:12:08 UTC