Bug 88224 - Freeze behaviour, not correct, depends on begin time ( Looks like Floating Point Problem )
Summary: Freeze behaviour, not correct, depends on begin time ( Looks like Floating Po...
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Major
Assignee: Nobody
Depends on:
Reported: 2012-06-04 04:31 PDT by Raks
Modified: 2012-06-04 04:31 PDT (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Raks 2012-06-04 04:31:11 PDT
I wrote a very small animation. All this does is make a circle on and off
I have two such blocks one with a begin time of 0s and another of begin 3.9s. Rest all of the things being same the behaviour is still different in that for the block with begin as 0s the freeze behaviour is correct and as expected whereas for animation with begin 3.9s the fill=freeze behaviour is not correct.

Not only this if I change the second block and make the duration as 0.8 and end as 4.8s, it starts behaving correctly

Pretty strange
I tried this on Google Chrome 17.0.963.46
Attached is the svg I tried with

<?xml version="1.0" encoding="UTF-8"?>
<svg display="inherit" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events">
    <g display="none">
        <animate attributeName="display" begin="0" calcMode="discrete" dur="0.8" fill="freeze" end="0.8" keyTimes="0;0.25;0.75;1.0" values="inherit;none;inherit;none"/>
        <circle cx="215" cy="120" r="20" fill="#ff0000"/>
        <circle cx="715" cy="620" r="20" fill="#00f0f0"/>

    <g display="none">
        <animate attributeName="display" begin="3.9" calcMode="discrete" dur="0.8" end="4.7" fill="freeze" keyTimes="0;0.25;0.75;1.0" values="inherit;none;inherit;none"/>
        <circle cx="415" cy="120" r="20" fill="#ff0000"/>
        <circle cx="615" cy="620" r="20" fill="#00f0f0"/>