[Bug 16521] Rounding of integer values is inconsistent with SVG and SMIL

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16521

--- Comment #4 from Brian Birtles <bbirtles@mozilla.com> 2012-05-21 06:02:51 UTC ---
(In reply to comment #3)
> I have identified one situation in which floor() rounding allows for a much
> more elegant CSS animation solution to a simple problem.
> 
> http://dabblet.com/gist/2760288

You can achieve the desired effect even more elegantly using round by simply
omitting the middle keyframe value for z-index:

@keyframes orbit {
    0% { margin-left: -150px; z-index: 10; }
    50% { margin-left: 100px; }
    100% { margin-left: -150px; z-index: 9; }
}

I'm sure it is possible to find some cases where floor more elegant. Likewise,
there will also be some where round is more elegant.

The main issue is that if we make CSS use floor it will be very hard to make
animations interchangeable between CSS and SVG (which is a Rec).

If you discover some really compelling reason for using floor then I'd
encourage posting it to public-fx.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 21 May 2012 06:02:55 UTC